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