aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee15
1 files changed, 0 insertions, 15 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 99a5672b..e40b03be 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -217,20 +217,6 @@ selectSpecificTab = (request) ->
chrome.windows.update(tab.windowId, { focused: true })
chrome.tabs.update(request.id, { selected: true }))
-#
-# Used by the content scripts to get settings from the local storage.
-#
-handleSettings = (request, port) ->
- switch request.operation
- when "get" # Get a single settings value.
- port.postMessage key: request.key, value: Settings.get request.key
- when "set" # Set a single settings value.
- Settings.set request.key, request.value
- when "fetch" # Fetch multiple settings values.
- values = request.values
- values[key] = Settings.get key for own key of values
- port.postMessage { values }
-
chrome.tabs.onSelectionChanged.addListener (tabId, selectionInfo) ->
if (selectionChangedHandlers.length > 0)
selectionChangedHandlers.pop().call()
@@ -650,7 +636,6 @@ bgLog = (request, sender) ->
# Port handler mapping
portHandlers =
keyDown: handleKeyDown,
- settings: handleSettings,
completions: handleCompletions
sendRequestHandlers =