fix(core): update
This commit is contained in:
parent
1ff54b0fcd
commit
8aa5576318
@ -38,6 +38,14 @@ export class DomTools {
|
||||
return domToolsInstance;
|
||||
}
|
||||
|
||||
public static getDomToolsSync() {
|
||||
const globalDomTools: DomTools = globalThis.deesDomTools;
|
||||
if (!globalDomTools) {
|
||||
throw new Error('You tried to access domtools synchronouly too early');
|
||||
}
|
||||
return globalThis.deesDomTools;
|
||||
}
|
||||
|
||||
// ========
|
||||
// INSTANCE
|
||||
// ========
|
||||
|
Loading…
Reference in New Issue
Block a user