Skip to content

Commit

Permalink
Properly reset willremove to the original value on cancel.
Browse files Browse the repository at this point in the history
  • Loading branch information
dero committed Mar 17, 2021
1 parent ab6262c commit 403de1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/components/VideoDownloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ export default class extends HTMLElement {
if (this.willremove === true) {
if (this.removalTimeout) {
this.state = 'done';
this.willremove = false;
clearTimeout(this.removalTimeout);
window.removeEventListener('beforeunload', this.unloadHandler);
}
Expand Down

0 comments on commit 403de1f

Please sign in to comment.