fix logger in popup

This commit is contained in:
Tamius Han 2020-01-28 01:26:40 +01:00
parent c84900def0
commit 3e565ddbfc
2 changed files with 4 additions and 4 deletions

View File

@ -145,10 +145,10 @@ export default {
}
},
async created () {
this.logger = new Logger({
this.logger = new Logger();
await this.logger.init({
allowLogging: true,
});
await this.logger.init();
this.settings = new Settings({updateCallback: this.updateSettings, logger: this.logger});
await this.settings.init();

View File

@ -205,10 +205,10 @@ export default {
}
},
async created() {
this.logger = new Logger({
this.logger = new Logger();
await this.logger.init({
allowLogging: true,
});
await this.logger.init();
this.settings = new Settings({updateCallback: () => this.updateConfig(), logger: this.logger});
await this.settings.init();