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:
parent
6dae7037e1
commit
43d9d604a6
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue