aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorStephen Blott2015-06-01 14:56:08 +0100
committerStephen Blott2015-06-01 14:56:08 +0100
commit35c52143d82c8b2bc3e07832e8f6cdb089453baf (patch)
tree9e38267f3cc8e0d82331a52373ad8f212f0ce3e0 /background_scripts
parentf44ca0ff0b7f17a280e30348fdb68daa606b1b9f (diff)
parent34f0f90debf0050ece9bd847993f281c1e64be59 (diff)
downloadvimium-35c52143d82c8b2bc3e07832e8f6cdb089453baf.tar.bz2
Merge branch 'unified-settings-implementation'
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee17
1 files changed, 0 insertions, 17 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 99a5672b..980f8e18 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 =
@@ -743,6 +728,4 @@ chrome.windows.getAll { populate: true }, (windows) ->
(response) -> updateScrollPosition(tab, response.scrollX, response.scrollY) if response?
chrome.tabs.sendMessage(tab.id, { name: "getScrollPosition" }, createScrollPositionHandler())
-# Start pulling changes from synchronized storage.
-Settings.init()
showUpgradeMessage()