Bug 1337457 - ESlint fix a=bustage
authorWes Kocher <wkocher@mozilla.com>
Thu, 02 Mar 2017 10:54:52 -0800
changeset 345651 c2c3aa1ebb128cc7078cc93a8dd01b177a056576
parent 345650 ccbea1069d10f6e9099df7ab0ad672bda3b8ed3b
child 345652 dac6db07aabbbfc2503e5a1ab207add80cf7f4aa
push id31443
push usercbook@mozilla.com
push dateFri, 03 Mar 2017 12:01:25 +0000
treeherdermozilla-central@31c09bb63b69 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1337457
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;
   },