From 87d28d3fc71e089673814cb3c61dc198eccb09da Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 7 Jan 2018 11:22:20 +0300 Subject: [PATCH] silence eslint --- background/background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/background/background.js b/background/background.js index 6c31287a..59b04b2a 100644 --- a/background/background.js +++ b/background/background.js @@ -300,7 +300,7 @@ function webNavUsercssInstallerFF(data) { getTab(tabId), ]).then(([pong, tab]) => { if (pong !== true && tab.url !== 'about:blank') { - API_METHODS.installUsercss({direct: true}, {tab}); + window.API_METHODS.installUsercss({direct: true}, {tab}); } }); } @@ -425,7 +425,7 @@ function updateIcon({tab, styles}) { function onRuntimeMessage(msg, sender, sendResponse) { - const fn = API_METHODS[msg.method]; + const fn = window.API_METHODS[msg.method]; if (!fn) return; // wrap 'Error' object instance as {__ERROR__: message},