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();