@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.
@@ -44,5 +44,3 @@ export declare class HCS implements HCSSDK {
44
44
  pauseAudio(topicId: string): Promise<void>;
45
45
  loadAndPlayAudio(topicId: string, autoplay?: boolean, volume?: number): Promise<void>;
46
46
  }
47
- declare const _default: any;
48
- export default _default;
@@ -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('[data-src^="hcs://"], [src^="hcs://"]');
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
- window.HCS = new HCS();
785
- window.HCS.init().then(() => {
786
- console.log("All HCS resources loaded");
787
- if (typeof window.HCSReady === "function") {
788
- console.log("Running HCSReady...");
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;