diff options
author | Shin'ya UEOKA <ueokande@i-beam.org> | 2019-08-29 03:37:58 +0000 |
---|---|---|
committer | Shin'ya UEOKA <ueokande@i-beam.org> | 2019-08-29 03:37:58 +0000 |
commit | 5197f22f9b9168a82e7cc6b0e0c1a6b970101e34 (patch) | |
tree | e77e02169d5ce6921c346afba6a64af6eada6133 /src/background/infrastructures | |
parent | 217b5a0e61cc5502ac430e3b9480abf0a60efdfd (diff) |
Fix type checkings
Diffstat (limited to 'src/background/infrastructures')
-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, |