From 25f17d7dd0a76eccfff6907f3d8095b9653ee4ad Mon Sep 17 00:00:00 2001 From: achmizs Date: Sat, 2 Feb 2019 17:06:21 -0500 Subject: [PATCH] Removed deleted file --- src/background.js | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 src/background.js diff --git a/src/background.js b/src/background.js deleted file mode 100644 index 740c807..0000000 --- a/src/background.js +++ /dev/null @@ -1,37 +0,0 @@ -/* Enables the page action (i.e., the browser toolbar icon). - */ -chrome.runtime.onInstalled.addListener(() => { - chrome.declarativeContent.onPageChanged.removeRules(undefined, () => { - chrome.declarativeContent.onPageChanged.addRules([{ - conditions: [ new chrome.declarativeContent.PageStateMatcher({ - pageUrl: { schemes: [ 'http', 'https' ] }, - }) - ], actions: [ new chrome.declarativeContent.ShowPageAction() ] - }]); - }); -}); - -/* Toggle the toolbar icon based on whether stickies are, or are not, set to - be killed on the current tab. - - This listener receives a message from the content script (contentScript.js); - the content script actually determines what the settings for the current - tab are. - */ -chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { - let icons = request.killingStickies ? { - "16": "images/ASK_on_16.png", - "32": "images/ASK_on_32.png", - "48": "images/ASK_on_48.png", - "128": "images/ASK_on_128.png" - } : { - "16": "images/ASK_off_16.png", - "32": "images/ASK_off_32.png", - "48": "images/ASK_off_48.png", - "128": "images/ASK_off_128.png" - }; - chrome.pageAction.setIcon({ - path: icons, - tabId: request.tabID || sender.tab.id - }); -}); \ No newline at end of file