diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-03-28 11:06:19 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-03-28 11:06:19 +0900 |
commit | a2a4531527c7786af18611e1d423c1504bb9245e (patch) | |
tree | a62e1a7d8e062a5be900a7e8dcee4d27c7aaa1b2 /src/background/controllers | |
parent | 94483920f2a32071505b913881eb7b342c910535 (diff) |
Send resize message to the sender tab instead of the current tab.
Sending resize message to the current table occurs an error, just after
switching the tab by a `tabopen` command. The background script unable
to connect the current (new tab) because it is in an initialization.
Diffstat (limited to 'src/background/controllers')
-rw-r--r-- | src/background/controllers/ConsoleController.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/background/controllers/ConsoleController.ts b/src/background/controllers/ConsoleController.ts index 72b9b8e..2a0d75f 100644 --- a/src/background/controllers/ConsoleController.ts +++ b/src/background/controllers/ConsoleController.ts @@ -5,7 +5,7 @@ import ConsoleUseCase from "../usecases/ConsoleUseCase"; export default class ConsoleController { constructor(private readonly consoleUseCase: ConsoleUseCase) {} - resize(width: number, height: number) { - return this.consoleUseCase.resize(width, height); + resize(senderTabId: number, width: number, height: number) { + return this.consoleUseCase.resize(senderTabId, width, height); } } |