diff options
Diffstat (limited to 'src/console/clients')
-rw-r--r-- | src/console/clients/ConsoleFrameClient.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/console/clients/ConsoleFrameClient.ts b/src/console/clients/ConsoleFrameClient.ts new file mode 100644 index 0000000..954e518 --- /dev/null +++ b/src/console/clients/ConsoleFrameClient.ts @@ -0,0 +1,11 @@ +import * as messages from "../../shared/messages"; + +export default class ConsoleFrameClient { + async resize(width: number, height: number): Promise<void> { + await browser.runtime.sendMessage({ + type: messages.CONSOLE_RESIZE, + width, + height, + }); + } +} |