fix(core): update

This commit is contained in:
Philipp Kunz 2020-05-23 15:40:08 +00:00
parent 2032df467e
commit 7c3d131b46
5 changed files with 24 additions and 13 deletions

View File

@ -4,9 +4,9 @@
"module": {
"githost": "gitlab.com",
"gitscope": "designestate",
"gitrepo": "dees-csstools",
"gitrepo": "dees-domtools",
"shortDescription": "tools to simplify complex css structures",
"npmPackagename": "@designestate/dees-csstools",
"npmPackagename": "@designestate/dees-domtools",
"license": "MIT",
"projectDomain": "design.estate"
}

2
package-lock.json generated
View File

@ -1,5 +1,5 @@
{
"name": "@designestate/dees-csstools",
"name": "@designestate/dees-domtools",
"version": "1.0.4",
"lockfileVersion": 1,
"requires": true,

View File

@ -1,5 +1,5 @@
{
"name": "@designestate/dees-csstools",
"name": "@designestate/dees-domtools",
"version": "1.0.4",
"private": false,
"description": "tools to simplify complex css structures",

View File

@ -1,17 +1,17 @@
# @designestate/dees-csstools
# @designestate/dees-domtools
tools to simplify complex css structures
## Availabililty and Links
* [npmjs.org (npm package)](https://www.npmjs.com/package/@designestate/dees-csstools)
* [gitlab.com (source)](https://gitlab.com/designestate/dees-csstools)
* [github.com (source mirror)](https://github.com/designestate/dees-csstools)
* [docs (typedoc)](https://designestate.gitlab.io/dees-csstools/)
* [npmjs.org (npm package)](https://www.npmjs.com/package/@designestate/dees-domtools)
* [gitlab.com (source)](https://gitlab.com/designestate/dees-domtools)
* [github.com (source mirror)](https://github.com/designestate/dees-domtools)
* [docs (typedoc)](https://designestate.gitlab.io/dees-domtools/)
## Status for master
[![pipeline status](https://gitlab.com/designestate/dees-csstools/badges/master/pipeline.svg)](https://gitlab.com/designestate/dees-csstools/commits/master)
[![coverage report](https://gitlab.com/designestate/dees-csstools/badges/master/coverage.svg)](https://gitlab.com/designestate/dees-csstools/commits/master)
[![npm downloads per month](https://img.shields.io/npm/dm/@designestate/dees-csstools.svg)](https://www.npmjs.com/package/@designestate/dees-csstools)
[![Known Vulnerabilities](https://snyk.io/test/npm/@designestate/dees-csstools/badge.svg)](https://snyk.io/test/npm/@designestate/dees-csstools)
[![pipeline status](https://gitlab.com/designestate/dees-domtools/badges/master/pipeline.svg)](https://gitlab.com/designestate/dees-domtools/commits/master)
[![coverage report](https://gitlab.com/designestate/dees-domtools/badges/master/coverage.svg)](https://gitlab.com/designestate/dees-domtools/commits/master)
[![npm downloads per month](https://img.shields.io/npm/dm/@designestate/dees-domtools.svg)](https://www.npmjs.com/package/@designestate/dees-domtools)
[![Known Vulnerabilities](https://snyk.io/test/npm/@designestate/dees-domtools/badge.svg)](https://snyk.io/test/npm/@designestate/dees-domtools)
[![TypeScript](https://img.shields.io/badge/TypeScript->=%203.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
[![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-prettier-ff69b4.svg)](https://prettier.io/)

View File

@ -9,6 +9,17 @@ export const elementBasicSetup = async () => {
await globalThis.deesCssToolsReady.promise;
} else {
globalThis.deesCssToolsReady = defer();
const documentReady = defer();
document.onreadystatechange = () => {
if (document.readyState === 'interactive') {
documentReady.resolve();
}
};
await documentReady.promise;
const head = document.querySelector('head');
const styleElement = document.createElement('style');
styleElement.type = 'text/css';
styleElement.appendChild(document.createTextNode(materialFontCss));
globalThis.deesCssToolsReady.resolve();
}
};