mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
chore(refactor): remove SyncManager
This commit is contained in:
@@ -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 ?? {}),
|
||||
|
||||
Reference in New Issue
Block a user