lordwelch 6fab6022d0 Remove grab
Switch to using bootstrap-table
Add DownThemAll plugin
Remove Firefox plugin
2021-01-09 16:36:18 -08:00

26 lines
444 B
TypeScript

"use strict";
// eslint-disable-next-line no-unused-vars
import { RawPort } from "../lib/browser";
// License: MIT
export class WindowState {
private readonly port: RawPort;
constructor(port: RawPort) {
this.port = port;
this.update = this.update.bind(this);
addEventListener("resize", this.update);
this.update();
}
update() {
if (!this.port) {
return;
}
this.port.postMessage("resized");
}
}