From e7b792e2d5f7dab25136b1e30ff75be388f4ac0d Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Fri, 3 May 2024 10:33:37 -0400 Subject: [PATCH] HiddenBrowser: options is optional, support data: URIs --- chrome/content/zotero/HiddenBrowser.jsm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/HiddenBrowser.jsm b/chrome/content/zotero/HiddenBrowser.jsm index 3cafdf1156..f5aa626be8 100644 --- a/chrome/content/zotero/HiddenBrowser.jsm +++ b/chrome/content/zotero/HiddenBrowser.jsm @@ -121,14 +121,14 @@ class HiddenBrowser { /** * * @param {String} source - HTTP URL, file: URL, or file path - * @param {Object} options + * @param {Object} [options] * @param {Boolean} [options.requireSuccessfulStatus] * @returns {Promise} */ async load(source, options) { await this._createdPromise; let url; - if (/^(file|https?|chrome|resource|blob):/.test(source)) { + if (/^(file|https?|chrome|resource|blob|data):/.test(source)) { url = source; } // Convert string path to file: URL