Scroll on global mark and handle gone tab

This commit is contained in:
Shin'ya Ueoka 2018-10-12 14:59:45 +09:00
parent 003742ec51
commit e248477ecb
9 changed files with 49 additions and 13 deletions

View file

@ -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,
});
}
}