@builder.io/sdk
Advanced tools
Comparing version 0.0.56 to 0.0.57
@@ -76,6 +76,8 @@ "use strict"; | ||
// FIXME: why are there attempts to load this twice? | ||
if (exports.isBrowser && window.builder) { | ||
return window.builder; | ||
if (exports.isBrowser) { | ||
if (window.builder) { | ||
return window.builder; | ||
} | ||
window.builder = this; | ||
} | ||
window.builder = this; | ||
if (exports.isBrowser) { | ||
@@ -82,0 +84,0 @@ this.bindMessageListeners(); |
{ | ||
"name": "@builder.io/sdk", | ||
"version": "0.0.56", | ||
"version": "0.0.57", | ||
"main": "dist/clients/js/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/clients/js/index.d.ts", |
@@ -294,8 +294,9 @@ import sortBy from 'lodash-es/sortBy'; | ||
// FIXME: why are there attempts to load this twice? | ||
if (isBrowser && (window as any).builder) { | ||
return (window as any).builder as Builder; | ||
if (isBrowser) { | ||
if ((window as any).builder) { | ||
return (window as any).builder as Builder; | ||
} | ||
(window as any).builder = this; | ||
} | ||
(window as any).builder = this; | ||
if (isBrowser) { | ||
@@ -302,0 +303,0 @@ this.bindMessageListeners(); |
87036
2306