Skip to content

Commit

Permalink
Get window from the moduleSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawel Lysy authored and TorsteinHonsi committed Jun 20, 2024
1 parent 39409fc commit 7e899ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templates/umd-module.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
obj[path] = fn.apply(null, args);

if (typeof CustomEvent === 'function') {
window.dispatchEvent(new CustomEvent(
@moduleSpace.win.dispatchEvent(new CustomEvent(
@moduleEvent,
{ detail: { path: path, module: obj[path] } }
));
}
}
}
@content
}));
}));

0 comments on commit 7e899ed

Please sign in to comment.