Skip to content

Commit bc976be

Browse files
add compat comment
1 parent 5503623 commit bc976be

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

dist/main.bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,8 @@ document.body.onload = async function(): Promise<void> {
387387
// Exit website confirmation alert
388388
window.onbeforeunload = (event): string => {
389389
event.preventDefault();
390+
391+
// Included for legacy support, e.g. Chrome/Edge < 119
390392
return event.returnValue = 'Are you sure you want to exit?';
391393
};
392394

0 commit comments

Comments
 (0)