chore(refactor): remove SyncManager

This commit is contained in:
Paul Makles
2022-06-29 16:41:26 +01:00
parent fedb5a1e60
commit d2f06ca62c
5 changed files with 52 additions and 82 deletions

View File

@@ -1,3 +1,17 @@
/**
* Inject a key into the window's globals.
* @param key Key
* @param value Value
*/
export function injectWindow(key: string, value: any) {
(window as any)[key] = value;
}
/**
* Inject a controller into the global controllers object.
* @param key Key
* @param value Value
*/
export function injectController(key: string, value: any) {
(window as any).controllers = {
...((window as any).controllers ?? {}),