blob: 170566d412b6fad9c25c3e70d00d1e338a9b615d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import * as messages from "../../shared/messages";
export default interface ConsoleFrameClient {
resize(tabId: number, width: number, height: number): Promise<void>;
}
export class ConsoleFrameClientImpl implements ConsoleFrameClient {
async resize(tabId: number, width: number, height: number): Promise<void> {
await browser.tabs.sendMessage(tabId, {
type: messages.CONSOLE_RESIZE,
width,
height,
});
}
}
|