aboutsummaryrefslogtreecommitdiff
path: root/src/console/clients
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2021-03-14 22:57:56 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2021-03-14 23:05:18 +0900
commit04ebd1e5331d29b2413c174ae0fe9d73566b3b8d (patch)
tree49a1759615560fe13f6b1a5c416f274a7d0da91e /src/console/clients
parentba19c573a76c75469b5b2ed9093f8373907ea364 (diff)
Resize console dynamically
Diffstat (limited to 'src/console/clients')
-rw-r--r--src/console/clients/ConsoleFrameClient.ts11
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,
+ });
+ }
+}