mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 04:09:59 +02:00
15 lines
287 B
TypeScript
15 lines
287 B
TypeScript
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);
|
|
}
|
|
}
|
|
}
|