aboutsummaryrefslogtreecommitdiff
path: root/src/background/infrastructures
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/infrastructures')
-rw-r--r--src/background/infrastructures/ContentMessageClient.ts8
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,