1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-05 14:17:08 +02:00

unblock iframe doc from accessing localstorage n cookies. fixes #558

This commit is contained in:
Kushagra Gour
2024-05-08 13:35:40 +05:30
parent 5fc38cfa28
commit b51edadc6d
3 changed files with 4 additions and 4 deletions

View File

@ -15,6 +15,6 @@ window.addEventListener('message', e => {
// Recieving from preview iframe
if (e.data && e.data.logs) {
window.opener.postMessage(e.data, '*');
(window.opener || window.top).postMessage(e.data, '*');
}
});