aboutsummaryrefslogtreecommitdiff
path: root/src/background/infrastructures
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-10-12 14:59:45 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-10-12 14:59:45 +0900
commite248477ecb46596af734589615118ba573971dc0 (patch)
tree8167efec0a4f539d4aecea4a0555c38f6a0934a3 /src/background/infrastructures
parent003742ec51aa7aea9214442bc0b611e2eb5eaf6e (diff)
Scroll on global mark and handle gone tab
Diffstat (limited to 'src/background/infrastructures')
-rw-r--r--src/background/infrastructures/content-message-client.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/background/infrastructures/content-message-client.js b/src/background/infrastructures/content-message-client.js
index d659560..7e7e602 100644
--- a/src/background/infrastructures/content-message-client.js
+++ b/src/background/infrastructures/content-message-client.js
@@ -22,4 +22,12 @@ export default class ContentMessageClient {
type: messages.ADDON_TOGGLE_ENABLED,
});
}
+
+ scrollTo(tabId, x, y) {
+ return browser.tabs.sendMessage(tabId, {
+ type: messages.TAB_SCROLL_TO,
+ x,
+ y,
+ });
+ }
}