| Index: lib/windowWrapper.js |
| =================================================================== |
| --- a/lib/windowWrapper.js |
| +++ b/lib/windowWrapper.js |
| @@ -16,7 +16,7 @@ |
| let stringBundle = Services.strings.createBundle("chrome://elemhidehelper/locale/global.properties?" + Math.random()); |
| let result = [stringBundle.GetStringFromName("selectelement.label"), stringBundle.GetStringFromName("stopselection.label")]; |
| - getMenuItem = function() result; |
| + getMenuItem = () => result; |
| return getMenuItem(); |
| } |
| @@ -68,7 +68,7 @@ |
| E: function(id) |
| { |
| let doc = this.window.document; |
| - this.E = function(id) doc.getElementById(id); |
| + this.E = id => doc.getElementById(id); |
| return this.E(id); |
| }, |