Get UI to show again

This commit is contained in:
Tamius Han 2021-08-26 01:34:59 +02:00
parent 84de5927cd
commit 104ed85d72

View File

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