Compare commits

..

2 Commits

Author SHA1 Message Date
7655fc0348 1.0.39 2020-07-27 17:11:01 +00:00
8aa5576318 fix(core): update 2020-07-27 17:11:00 +00:00
3 changed files with 10 additions and 2 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@designestate/dees-domtools",
"version": "1.0.38",
"version": "1.0.39",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@designestate/dees-domtools",
"version": "1.0.38",
"version": "1.0.39",
"private": false,
"description": "tools to simplify complex css structures",
"main": "dist_ts/index.js",

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