Skip to content

Commit

Permalink
fix: 🐛 add better error message for undefined Merkur
Browse files Browse the repository at this point in the history
  • Loading branch information
mjancarik committed Nov 13, 2024
1 parent 0152316 commit 48407e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/templates/footer.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
window.addEventListener('load', function () {
__merkur__.create(<%- escapeToJSON(widgetProperties) %>)
window?.__merkur__?.create(<%- escapeToJSON(widgetProperties) %>)
.then(function (widget) {
widget.containerSelector = widget.containerSelector ?? '.merkur-main';
Expand Down

0 comments on commit 48407e0

Please sign in to comment.