Get UI to show again
This commit is contained in:
parent
84de5927cd
commit
104ed85d72
@ -6,6 +6,7 @@ import Comms from './lib/comms/Comms';
|
|||||||
import CommsClient from './lib/comms/CommsClient';
|
import CommsClient from './lib/comms/CommsClient';
|
||||||
import PageInfo from './lib/video-data/PageInfo';
|
import PageInfo from './lib/video-data/PageInfo';
|
||||||
import Logger, { baseLoggingOptions } from './lib/Logger';
|
import Logger, { baseLoggingOptions } from './lib/Logger';
|
||||||
|
import UWGlobals from './lib/UWGlobals';
|
||||||
|
|
||||||
export default class UWContent {
|
export default class UWContent {
|
||||||
pageInfo: PageInfo;
|
pageInfo: PageInfo;
|
||||||
@ -81,6 +82,11 @@ export default class UWContent {
|
|||||||
console.error("logger init failed!", e)
|
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
|
// init() is re-run any time settings change
|
||||||
if (this.comms) {
|
if (this.comms) {
|
||||||
this.comms.destroy();
|
this.comms.destroy();
|
||||||
|
Loading…
Reference in New Issue
Block a user