Bug 1257246: Update webextension APIs for eslint 2. r=kmag
ESLint 2 now flags anonymous generator functions that don't match the generator-star-spacing rule so this mostly is fixing that. MozReview-Commit-ID: 5sLaF26sd0E
This commit is contained in:
@@ -195,11 +195,11 @@ CommandList.prototype = {
|
||||
*/
|
||||
getModifiersAttribute(chromeModifiers) {
|
||||
let modifiersMap = {
|
||||
"Alt" : "alt",
|
||||
"Command" : "accel",
|
||||
"Ctrl" : "accel",
|
||||
"MacCtrl" : "control",
|
||||
"Shift" : "shift",
|
||||
"Alt": "alt",
|
||||
"Command": "accel",
|
||||
"Ctrl": "accel",
|
||||
"MacCtrl": "control",
|
||||
"Shift": "shift",
|
||||
};
|
||||
return Array.from(chromeModifiers, modifier => {
|
||||
return modifiersMap[modifier];
|
||||
|
||||
Reference in New Issue
Block a user