From 3e565ddbfc7425afd37e865f0af4617775795a0d Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Tue, 28 Jan 2020 01:26:40 +0100 Subject: [PATCH] fix logger in popup --- src/options/App.vue | 4 ++-- src/popup/App.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/options/App.vue b/src/options/App.vue index be1c7c0..265fd9f 100644 --- a/src/options/App.vue +++ b/src/options/App.vue @@ -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(); diff --git a/src/popup/App.vue b/src/popup/App.vue index 4edabee..db5af83 100644 --- a/src/popup/App.vue +++ b/src/popup/App.vue @@ -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();