1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-28 17:20:13 +02:00

add basic detached preview mode. fixes #92

This commit is contained in:
Kushagra Gour
2017-09-04 03:17:26 +05:30
parent 83e28635d0
commit 90f50f5502
5 changed files with 59 additions and 0 deletions

3
src/detached-window.js Normal file
View File

@@ -0,0 +1,3 @@
window.addEventListener('message', e => {
document.querySelector('iframe').src = e.data;
});