Index: lib/main.js |
=================================================================== |
--- a/lib/main.js |
+++ b/lib/main.js |
@@ -47,17 +47,17 @@ new WindowObserver({ |
}); |
function getMenuItem() |
{ |
// Randomize URI to work around bug 719376 |
let stringBundle = Services.strings.createBundle("chrome://abpwatcher/locale/global.properties?" + Math.random()); |
let result = [stringBundle.GetStringFromName("startwatching.label"), stringBundle.GetStringFromName("startwatching.accesskey")]; |
- getMenuItem = function() result; |
+ getMenuItem = () => result; |
return getMenuItem(); |
} |
function popupShowingHandler(event) |
{ |
let popup = event.originalTarget; |
if (!/^(abp-(?:toolbar|status|menuitem)-)popup$/.test(popup.id)) |
return; |