fix(core): update

This commit is contained in:
Philipp Kunz 2020-07-27 17:11:00 +00:00
parent 1ff54b0fcd
commit 8aa5576318

View File

@ -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
// ========