mirror of
https://github.com/zotero/zotero.git
synced 2026-09-10 22:41:08 +00:00
fx140: Migrate hiddenDOMWindow in style.js
XSLTProcessor is available in the global scope now.
This commit is contained in:
parent
0c1e341f50
commit
0f2690eb75
1 changed files with 0 additions and 3 deletions
|
|
@ -768,9 +768,6 @@ Zotero.Style.prototype.getCiteProc = function (locale, format, automaticJournalA
|
|||
let updateXSLT = new DOMParser()
|
||||
.parseFromString(xsl, "application/xml");
|
||||
|
||||
// XSLTProcessor is no longer available in XPCOM, so get from hidden window
|
||||
let XSLTProcessor = Cc["@mozilla.org/appshell/appShellService;1"]
|
||||
.getService(Ci.nsIAppShellService).hiddenDOMWindow.XSLTProcessor;
|
||||
// load XSLT file into XSLTProcessor
|
||||
Zotero.Styles.xsltProcessor = new XSLTProcessor();
|
||||
Zotero.Styles.xsltProcessor.importStylesheet(updateXSLT);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue