Skip to content

Commit

Permalink
fix: Fix *reson.message* not existing case
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Oct 14, 2022
1 parent 4af73cb commit 88e5f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/output/srcdoc.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
}

window.addEventListener("unhandledrejection", event => {
if (event.reason.message.includes('Cross-origin')) {
if (event.reason.message && event.reason.message.includes('Cross-origin')) {
event.preventDefault()
return
}
Expand Down

0 comments on commit 88e5f83

Please sign in to comment.