Skip to content

Commit

Permalink
fixup! feat(mon-pix): inform window opener that preview is ready to r…
Browse files Browse the repository at this point in the history
…eceive module content
  • Loading branch information
clemlatz committed Oct 10, 2024
1 parent e374e32 commit 6b28bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mon-pix/app/components/module/preview.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default class ModulixPreview extends Component {

this.modulixPreviewMode.enable();

const isWindowOpenedFromModulixEditor = window.opener !== undefined;
const isWindowOpenedFromModulixEditor = window.opener !== null;
if (isWindowOpenedFromModulixEditor) {
window.addEventListener('message', (event) => {
if (event.data?.from === 'modulix-editor') {
Expand Down

0 comments on commit 6b28bc0

Please sign in to comment.