@hashgraphonline/standards-sdk 0.0.34 → 0.0.36
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.
|
@@ -625,7 +625,9 @@ class HCS {
|
|
|
625
625
|
} else if (element.matches('link[data-src^="hcs://"]')) {
|
|
626
626
|
this.loadResource(element, "css", Infinity);
|
|
627
627
|
}
|
|
628
|
-
const childrenWithHCS = element.querySelectorAll(
|
|
628
|
+
const childrenWithHCS = element.querySelectorAll(
|
|
629
|
+
'[data-src^="hcs://"], [src^="hcs://"]'
|
|
630
|
+
);
|
|
629
631
|
childrenWithHCS.forEach((child) => {
|
|
630
632
|
const childElement = child;
|
|
631
633
|
const tagName = childElement.tagName.toLowerCase();
|
|
@@ -781,14 +783,17 @@ class HCS {
|
|
|
781
783
|
}
|
|
782
784
|
}
|
|
783
785
|
}
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
console.log("
|
|
789
|
-
window.HCSReady
|
|
790
|
-
|
|
791
|
-
|
|
786
|
+
const isServer$1 = typeof window === "undefined";
|
|
787
|
+
if (!isServer$1) {
|
|
788
|
+
window.HCS = new HCS();
|
|
789
|
+
window.HCS.init().then(() => {
|
|
790
|
+
console.log("All HCS resources loaded");
|
|
791
|
+
if (typeof window.HCSReady === "function") {
|
|
792
|
+
console.log("Running HCSReady...");
|
|
793
|
+
window.HCSReady();
|
|
794
|
+
}
|
|
795
|
+
});
|
|
796
|
+
}
|
|
792
797
|
class WasmBridge {
|
|
793
798
|
constructor() {
|
|
794
799
|
this.wasm = null;
|