diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-03-28 12:41:22 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-28 12:41:22 +0900 |
commit | 0f561ad10b0946692913a56290816ed5022d91e3 (patch) | |
tree | e6b40d24a0770a5e39281d2f3c7145e9560b97f9 /src/background/infrastructures/ContentMessageListener.ts | |
parent | 9d77f734fc5556217ddff14af6b067dfbea92854 (diff) | |
parent | 5a7a3dbb6638fdb8d349c3c4360e6ea916ca7f7d (diff) |
Merge pull request #1069 from ueokande/reciving-error-on-tab-opened
Diffstat (limited to 'src/background/infrastructures/ContentMessageListener.ts')
-rw-r--r-- | src/background/infrastructures/ContentMessageListener.ts | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/background/infrastructures/ContentMessageListener.ts b/src/background/infrastructures/ContentMessageListener.ts index ec87938..6023047 100644 --- a/src/background/infrastructures/ContentMessageListener.ts +++ b/src/background/infrastructures/ContentMessageListener.ts @@ -81,7 +81,11 @@ export default class ContentMessageListener { case messages.CONSOLE_ENTER_COMMAND: return this.onConsoleEnterCommand(message.text); case messages.CONSOLE_RESIZE: - return this.onConsoleResize(message.width, message.height); + return this.onConsoleResize( + senderTab.id!, + message.width, + message.height + ); case messages.SETTINGS_QUERY: return this.onSettingsQuery(); case messages.FIND_GET_KEYWORD: @@ -116,8 +120,12 @@ export default class ContentMessageListener { return this.commandController.exec(text); } - onConsoleResize(width: number, height: number): Promise<void> { - return this.consoleController.resize(width, height); + onConsoleResize( + senderTabId: number, + width: number, + height: number + ): Promise<void> { + return this.consoleController.resize(senderTabId, width, height); } async onSettingsQuery(): Promise<unknown> { |