Skip to content

Commit

Permalink
🐛 close #138
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZhang73 committed May 26, 2022
1 parent 7f5edbb commit 0136b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ if (showPopup) {
}
}
// un-save notice
document.addEventListener('beforeunload', event => {
window.addEventListener('beforeunload', event => {
if (annotationStore.hasVideo && !mainStore.isSaved) {
event.returnValue = 'The annotations are not saved!'
}
Expand Down

0 comments on commit 0136b35

Please sign in to comment.