mirror of
https://github.com/zen-browser/components.git
synced 2025-07-10 02:35:28 +02:00
Add SplitViewsBase class with event listeners and public API
This commit is contained in:
parent
6b1bf7b7e5
commit
d4e80c2719
4 changed files with 63 additions and 4 deletions
15
common/component.ts
Normal file
15
common/component.ts
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue