fix(core): update
This commit is contained in:
@ -38,10 +38,13 @@ export class DomTools {
|
||||
return domToolsInstance;
|
||||
}
|
||||
|
||||
public static getDomToolsSync() {
|
||||
/**
|
||||
* if you can, use the static asysnc .setupDomTools() function instead since it is safer to use.
|
||||
*/
|
||||
public static getGlobalDomToolsSync() {
|
||||
const globalDomTools: DomTools = globalThis.deesDomTools;
|
||||
if (!globalDomTools) {
|
||||
throw new Error('You tried to access domtools synchronouly too early');
|
||||
throw new Error('You tried to access domtools synchronously too early');
|
||||
}
|
||||
return globalThis.deesDomTools;
|
||||
}
|
||||
|
Reference in New Issue
Block a user