@startinblox/boilerplate 3.0.0 → 3.0.1

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.
package/dist/index.js CHANGED
@@ -709,7 +709,7 @@ class $ extends at {
709
709
  }
710
710
  );
711
711
  };
712
- document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", i) : i();
712
+ document.readyState !== "complete" ? document.addEventListener("DOMContentLoaded", i) : i();
713
713
  }
714
714
  async _attach(t, e, r) {
715
715
  return !this.orbit && window.orbit && (this.orbit = window.orbit, e) ? (Ae({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startinblox/boilerplate",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Startin'blox Boilerplate",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -34,7 +34,7 @@ export default class extends ComponentObjectsHandler {
34
34
  },
35
35
  );
36
36
  };
37
- if (document.readyState === "loading") {
37
+ if (document.readyState !== "complete") {
38
38
  document.addEventListener("DOMContentLoaded", attach);
39
39
  } else {
40
40
  attach();