diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-09-03 03:11:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-03 03:11:10 +0000 |
commit | ab6295d0f136b77534e6e290e165b1035c7abdc2 (patch) | |
tree | 5e435a9396979e4307c783f131f251581b955aac /src/background/infrastructures/ContentMessageClient.ts | |
parent | 07bcc15e7b487fb5815b151e8c7e84a31f875dce (diff) | |
parent | f64b7ca320f73dd523113f0eedca35e176843bd6 (diff) |
Merge pull request #638 from ueokande/qa-0.24
QA 0.24
Diffstat (limited to 'src/background/infrastructures/ContentMessageClient.ts')
-rw-r--r-- | src/background/infrastructures/ContentMessageClient.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/background/infrastructures/ContentMessageClient.ts b/src/background/infrastructures/ContentMessageClient.ts index 2983409..4d2284c 100644 --- a/src/background/infrastructures/ContentMessageClient.ts +++ b/src/background/infrastructures/ContentMessageClient.ts @@ -22,14 +22,14 @@ export default class ContentMessageClient { return enabled as any as boolean; } - toggleAddonEnabled(tabId: number): Promise<void> { - return browser.tabs.sendMessage(tabId, { + async toggleAddonEnabled(tabId: number): Promise<void> { + await browser.tabs.sendMessage(tabId, { type: messages.ADDON_TOGGLE_ENABLED, }); } - scrollTo(tabId: number, x: number, y: number): Promise<void> { - return browser.tabs.sendMessage(tabId, { + async scrollTo(tabId: number, x: number, y: number): Promise<void> { + await browser.tabs.sendMessage(tabId, { type: messages.TAB_SCROLL_TO, x, y, |