aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorsainaen2013-05-25 20:21:36 +0300
committersainaen2013-05-25 20:48:40 +0300
commit1f661fc2b30141a140b2eacfc824e0f974dcf292 (patch)
treec5f90d275f3754ab4e7d59690349fecd487ae87c /background_scripts
parent11031398af6c4981454354fb1a70cb3473368515 (diff)
downloadvimium-1f661fc2b30141a140b2eacfc824e0f974dcf292.tar.bz2
Replace `sendRequest()` calls with `sendMessage()` ones in marks.coffee
Fixing incomplete commit 9403692e51, replacing old API calls with the new ones in two more files: `background/marks.coffee` and `content_scripts/marks.coffee`.
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/marks.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/marks.coffee b/background_scripts/marks.coffee
index 5b38a381..15d41205 100644
--- a/background_scripts/marks.coffee
+++ b/background_scripts/marks.coffee
@@ -24,11 +24,11 @@ removeMarksForTab = (id) ->
root.goto = (req, sender) ->
mark = marks[req.markName]
chrome.tabs.update mark.tabId, selected: true
- chrome.tabs.sendRequest mark.tabId,
+ chrome.tabs.sendMessage mark.tabId,
name: "setScrollPosition"
scrollX: mark.scrollX
scrollY: mark.scrollY
- chrome.tabs.sendRequest mark.tabId,
+ chrome.tabs.sendMessage mark.tabId,
name: "showHUDforDuration",
text: "Jumped to global mark '#{req.markName}'"
duration: 1000