Fix blockRemoteResources passed to wrong method

After OOPification of HiddenBrowser.jsm. The constructor accepts
blockRemoteResources, the load() method ignores it.
This commit is contained in:
Abe Jellinek 2024-02-14 11:25:44 -05:00
parent 6dae7037e1
commit 43d9d604a6

View file

@ -1607,8 +1607,8 @@ Zotero.Fulltext = Zotero.FullText = new function(){
var pageData;
try {
let url = Zotero.File.pathToFileURI(path);
browser = new HiddenBrowser();
await browser.load(url, { blockRemoteResources: true });
browser = new HiddenBrowser({ blockRemoteResources: true });
await browser.load(url);
pageData = await browser.getPageData(['characterSet', 'bodyText']);
}
finally {