Skip to content

Commit

Permalink
Fix postmessage issues
Browse files Browse the repository at this point in the history
  • Loading branch information
siebsie23 committed Apr 5, 2024
1 parent 0bb042a commit 40234fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/views/fmButton.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Add callback to file manager
fm.$store.commit('fm/setFileCallBack', function(fileUrl) {
window.opener.fmSetLink(fileUrl);
window.opener.postMessage(fileUrl, '*');
window.close();
});
});
Expand Down
4 changes: 2 additions & 2 deletions resources/views/tinymce5.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
mceAction: 'insert',
content: URL,
text: URL.split('/').pop()
})
}, '*')
// close popup window
parent.postMessage({ mceAction: 'close' });
parent.postMessage({ mceAction: 'close' }, '*');
}
};
Expand Down

0 comments on commit 40234fd

Please sign in to comment.