Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

fix isIFrame

AykutSaraca26cc56172d0
diff --git a/src/lib/utils/widget.ts b/src/lib/utils/widget.ts
index 3e336b63..6e6d61b1 100644
--- a/src/lib/utils/widget.ts
+++ b/src/lib/utils/widget.ts
@@ -1,5 +1,6 @@
export function isIframe() {
try {
+ if (window === undefined) return false;
return window.self !== window.top;
} catch (e) {
return true;