Skip to content

Commit

Permalink
Fix crash on Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
Xwilarg committed Apr 30, 2022
1 parent e4d1461 commit 4603142
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 0 additions & 8 deletions .github/ISSUE_TEMPLATE/other_request.md

This file was deleted.

4 changes: 3 additions & 1 deletion src/background/Downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export default class Downloader
}

updateProgress(progress: number, name: string | null, isZipping: boolean) {
this.progressCallback(progress, name, isZipping);
try {
this.progressCallback(progress, name, isZipping);
} catch (e) { } // Dead object
this.#progressPercent = progress;
this.#progressName = name;
this.#progressZipping = isZipping;
Expand Down

0 comments on commit 4603142

Please sign in to comment.