Skip to content

Commit 8ca959f

Browse files
committed
fix(js): remove window.parent lookup
1 parent 21a946b commit 8ca959f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/js/src/bridge.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ export const loadBridge = (src: string) => {
1010

1111
// Way to make sure all event handlers are called after loading
1212
window.storyblokRegisterEvent = (cb: () => void) => {
13-
if (window.location === window.parent.location) {
14-
console.warn('You are not in Draft Mode or in the Visual Editor.');
15-
return;
16-
}
17-
1813
if (!loaded) {
1914
callbacks.push(cb);
2015
}

0 commit comments

Comments
 (0)