Add SplitViewsBase class with event listeners and public API

This commit is contained in:
Mauro Balades 2024-08-05 19:19:49 +02:00
parent 6b1bf7b7e5
commit d4e80c2719
4 changed files with 63 additions and 4 deletions

15
common/component.ts Normal file
View file

@ -0,0 +1,15 @@
import { Config } from "./config";
export default class Component {
readonly config: Config;
constructor(config: Config) {
this.config = config;
}
log(message: string) {
if (this.config.debug) {
console.log(this.config.browserName + ': ' + message);
}
}
}