@startinblox/boilerplate 4.2.1 → 4.2.2
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
|
@@ -697,7 +697,7 @@ class $ extends lt {
|
|
|
697
697
|
}
|
|
698
698
|
);
|
|
699
699
|
};
|
|
700
|
-
document.addEventListener("readystatechange", i);
|
|
700
|
+
document.readyState === "complete" ? i() : document.addEventListener("readystatechange", i);
|
|
701
701
|
}
|
|
702
702
|
async _attach(t, e, r) {
|
|
703
703
|
return !this.orbit && window.orbit && (this.orbit = window.orbit, e) ? (be({
|
package/package.json
CHANGED
|
@@ -33,7 +33,11 @@ export default class extends ComponentObjectsHandler {
|
|
|
33
33
|
);
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
document.
|
|
36
|
+
if (document.readyState === "complete") {
|
|
37
|
+
attach();
|
|
38
|
+
} else {
|
|
39
|
+
document.addEventListener("readystatechange", attach);
|
|
40
|
+
}
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
@property({ attribute: "default-data-src", reflect: true })
|