wj-elements 0.1.126 → 0.1.127

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -403,9 +403,11 @@ const _WJElement = class _WJElement extends HTMLElement {
403
403
  this.setUpAccessors();
404
404
  this.drawingStatus = this.drawingStatuses.START;
405
405
  await this.display(force);
406
- const sheet = new CSSStyleSheet();
407
- sheet.replaceSync(this.constructor.cssStyleSheet);
408
- this.context.adoptedStyleSheets = [sheet];
406
+ if (typeof this.constructor.cssStyleSheet === "string" && this.constructor.cssStyleSheet) {
407
+ const sheet = new CSSStyleSheet();
408
+ sheet.replaceSync(this.constructor.cssStyleSheet);
409
+ this.context.adoptedStyleSheets = [sheet];
410
+ }
409
411
  resolve();
410
412
  });
411
413
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wj-elements",
3
3
  "description": "WebJET Elements is a modern set of user interface tools harnessing the power of web components designed to simplify web application development.",
4
- "version": "0.1.126",
4
+ "version": "0.1.127",
5
5
  "homepage": "https://github.com/lencys/wj-elements",
6
6
  "author": "Lukáš Ondrejček <lukas.ondrejcek@gmail.com>",
7
7
  "license": "MIT",