diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 7174ea9186..b949b04a98 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -1143,9 +1143,9 @@ Zotero.Attachments = new function(){ */ this.downloadPDFViaBrowser = async function (url, path, options = {}) { Zotero.debug(`downloadPDFViaBrowser: Downloading file via browser from ${url}`); - const onLoadTimeout = 1e3; + const onLoadTimeout = Zotero.Prefs.get('downloadPDFViaBrowser.onLoadTimeout'); // Technically this is not a download, but the full operation timeout - const downloadTimeout = 60e3; + const downloadTimeout = Zotero.Prefs.get('downloadPDFViaBrowser.downloadTimeout'); let channelBrowser, hiddenBrowser; let hiddenBrowserPDFFoundDeferred = Zotero.Promise.defer(); diff --git a/defaults/preferences/zotero.js b/defaults/preferences/zotero.js index a984863f3b..fda907fb59 100644 --- a/defaults/preferences/zotero.js +++ b/defaults/preferences/zotero.js @@ -78,6 +78,9 @@ pref("extensions.zotero.sortCreatorAsString", false); pref("extensions.zotero.tagSelector.showAutomatic", true); pref("extensions.zotero.tagSelector.displayAllTags", false); +pref("extensions.zotero.downloadPDFViaBrowser.onLoadTimeout", 1500); +pref("extensions.zotero.downloadPDFViaBrowser.downloadTimeout", 60000); + // Keyboard shortcuts pref("extensions.zotero.keys.saveToZotero", "S"); pref("extensions.zotero.keys.newItem", "N");