From 104ed85d728329ea67c992cd6776d623ef2ec0d8 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Thu, 26 Aug 2021 01:34:59 +0200 Subject: [PATCH] Get UI to show again --- src/ext/UWContent.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ext/UWContent.ts b/src/ext/UWContent.ts index a4602da..c648ea9 100644 --- a/src/ext/UWContent.ts +++ b/src/ext/UWContent.ts @@ -6,6 +6,7 @@ import Comms from './lib/comms/Comms'; import CommsClient from './lib/comms/CommsClient'; import PageInfo from './lib/video-data/PageInfo'; import Logger, { baseLoggingOptions } from './lib/Logger'; +import UWGlobals from './lib/UWGlobals'; export default class UWContent { pageInfo: PageInfo; @@ -81,6 +82,11 @@ export default class UWContent { console.error("logger init failed!", e) } + // second — let's add some globals + if (! (window as any).ultrawidify) { + (window as any).ultrawidify = new UWGlobals(); + } + // init() is re-run any time settings change if (this.comms) { this.comms.destroy();