Bug 1337457 - ESlint fix a=bustage
authorWes Kocher <wkocher@mozilla.com>
Thu, 02 Mar 2017 10:54:52 -0800
changeset 374678 c2c3aa1ebb128cc7078cc93a8dd01b177a056576
parent 374677 ccbea1069d10f6e9099df7ab0ad672bda3b8ed3b
child 374679 dac6db07aabbbfc2503e5a1ab207add80cf7f4aa
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1337457
milestone54.0a1
Bug 1337457 - ESlint fix a=bustage MozReview-Commit-ID: 3HqVQVkN8hf
browser/components/extensions/ext-commands.js
--- a/browser/components/extensions/ext-commands.js
+++ b/browser/components/extensions/ext-commands.js
@@ -72,17 +72,17 @@ CommandList.prototype = {
   loadCommandsFromManifest(manifest) {
     let commands = new Map();
     // For Windows, chrome.runtime expects 'win' while chrome.commands
     // expects 'windows'.  We can special case this for now.
     let os = PlatformInfo.os == "win" ? "windows" : PlatformInfo.os;
     for (let [name, command] of Object.entries(manifest.commands)) {
       let suggested_key = command.suggested_key || {};
       let shortcut = suggested_key[os] || suggested_key.default;
-      shortcut = shortcut ? shortcut.replace(/\s+/g, "") : null,
+      shortcut = shortcut ? shortcut.replace(/\s+/g, "") : null;
       commands.set(name, {
         description: command.description,
         shortcut,
       });
     }
     return commands;
   },