diff --git a/src/csui/PlayerOverlay.vue b/src/csui/PlayerOverlay.vue index efcab38..a2bee02 100644 --- a/src/csui/PlayerOverlay.vue +++ b/src/csui/PlayerOverlay.vue @@ -154,29 +154,12 @@ export default { await this.settings.init(); this.settingsInitialized = true; - // set up communication with client script + // set up communication with client script. + // NOTE: companion onmousemove is set up in UIProbeMixin window.addEventListener('message', event => { this.handleMessage(event); }); - /** - * Setup the "companion" onMouseMove handler to the one in the content script. - * We can handle events with the same function we use to handle events from - * the content script. - */ - - // this is handled in UIProbeMixin.js now — if UIProbeMixin works, then - // this can be safely removed. Note to self — leave the comment explaining - // UI probes are set in the mixin. - // document.addEventListener('mousemove', (event) => { - // this.handleProbe({ - // coords: { - // x: event.clientX, - // y: event.clientY - // } - // }, this.origin); - // }); - this.eventBus.subscribe('uw-config-broadcast', {function: (data) => { if (data.type === 'drm-status') { this.statusFlags.hasDrm = data.hasDrm; diff --git a/src/ext/lib/uwui/UI.js b/src/ext/lib/uwui/UI.js index a528d32..37666ae 100644 --- a/src/ext/lib/uwui/UI.js +++ b/src/ext/lib/uwui/UI.js @@ -14,8 +14,6 @@ class UI { this.extensionBase = browser.runtime.getURL('').replace(/\/$/, ""); this.eventBus = uiConfig.eventBus; - - this.init(); } async init() {