Fix logger init in popup

This commit is contained in:
Tamius Han 2025-12-22 03:53:20 +01:00
parent 4a562443b1
commit 61972a7b2d

View File

@ -123,7 +123,7 @@ export default defineComponent({
this.role = segment.replace('#', ''); this.role = segment.replace('#', '');
} }
this.logAggregator = new LogAggregator(''); this.logAggregator = new LogAggregator('App.vue');
this.logger = new ComponentLogger(this.logAggregator, 'App.vue'); this.logger = new ComponentLogger(this.logAggregator, 'App.vue');
this.settings = new Settings({ this.settings = new Settings({
@ -198,7 +198,7 @@ export default defineComponent({
} }
) )
this.comms = new CommsClient('popup-port', this.logger, this.eventBus); this.comms = new CommsClient('popup-port', this.logAggregator, this.eventBus);
this.eventBus.setComms(this.comms); this.eventBus.setComms(this.comms);
this.eventBus.setupPopupTunnelWorkaround({ this.eventBus.setupPopupTunnelWorkaround({
origin: CommsOrigin.Popup, origin: CommsOrigin.Popup,