Skip to content

Commit

Permalink
fix: (JS) downloadPlus_ff98.uc.js 1处BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
benzBrake committed Mar 3, 2023
1 parent 56431dc commit 095cc06
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions downloadPlus_ff98.uc.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
$L: $L,
get appVersion() {
delete this.appVersion;
return this.appVersion = parseInt(Services.appinfo.version);
return this.appVersion = Services.appinfo.version.split(".")[0];
},
get sss() {
delete this.sss;
Expand Down Expand Up @@ -360,10 +360,9 @@
}

DownloadPlus.modules.removeFileMenuitem = {
PREF_ENABLED: 'userChromeJS.downloadPlus.enableRemoveFileFromDiskMenuitem',
PREF_ENABLED: 'userChromeJS.DownloadPlus.enableRemoveFromDiskMenuitem',
init(doc, win, location) {
const { DownloadPlus } = win;
if (!DownloadPlus.prefs.get("userChromeJS.downloadPlus.enableRemoveFromDiskMenuitem", true)) return;
if (location.href.startsWith("chrome://browser/content/browser.x")) {
if (DownloadPlus.appVersion >= 98 && !this.hasOwnProperty('clearHistoryOnDelete')) {
this.clearHistoryOnDelete = DownloadPlus.prefs.get("browser.download.clearHistoryOnDelete");
Expand Down

0 comments on commit 095cc06

Please sign in to comment.