From 5197f22f9b9168a82e7cc6b0e0c1a6b970101e34 Mon Sep 17 00:00:00 2001 From: Shin'ya UEOKA Date: Thu, 29 Aug 2019 03:37:58 +0000 Subject: Fix type checkings --- src/background/infrastructures/ContentMessageClient.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/background') 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 { - return browser.tabs.sendMessage(tabId, { + async toggleAddonEnabled(tabId: number): Promise { + await browser.tabs.sendMessage(tabId, { type: messages.ADDON_TOGGLE_ENABLED, }); } - scrollTo(tabId: number, x: number, y: number): Promise { - return browser.tabs.sendMessage(tabId, { + async scrollTo(tabId: number, x: number, y: number): Promise { + await browser.tabs.sendMessage(tabId, { type: messages.TAB_SCROLL_TO, x, y, -- cgit v1.2.3