Skip to content

Commit 8fb6c6c

Browse files
committed
Bug fix for when this is used in an iframe: use parent, not top
1 parent 07db91e commit 8fb6c6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/filedialog.litcoffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ communication in the other direction. To tell the page any data, simply
2828
pass it to the `tellPage` routine, and it will be posted to the containing
2929
window via `postMessage`.
3030

31-
tellPage = ( message ) -> window.top.postMessage message, '*'
31+
tellPage = ( message ) -> window.parent.postMessage message, '*'
3232
3333
# State variables
3434

0 commit comments

Comments
 (0)