From 1f661fc2b30141a140b2eacfc824e0f974dcf292 Mon Sep 17 00:00:00 2001 From: sainaen Date: Sat, 25 May 2013 20:21:36 +0300 Subject: 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`. --- background_scripts/marks.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'background_scripts') 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 -- cgit v1.2.3