aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee9
1 files changed, 0 insertions, 9 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 1cb00a82..60c161f9 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -377,15 +377,6 @@ runBackgroundCommand = ({frameId, registryEntry, count}) ->
else
repeatFunction BackgroundCommands[registryEntry.command], count, 0, frameId
-#
-# Message all tabs. Args should be the arguments hash used by the Chrome sendRequest API.
-#
-sendRequestToAllTabs = (args) ->
- chrome.windows.getAll({ populate: true }, (windows) ->
- for window in windows
- for tab in window.tabs
- chrome.tabs.sendMessage(tab.id, args, null))
-
openOptionsPageInNewTab = ->
chrome.tabs.getSelected(null, (tab) ->
chrome.tabs.create({ url: chrome.runtime.getURL("pages/options.html"), index: tab.index + 1 }))