Use Zotero.debug() instead of dump() in WPD
This commit is contained in:
parent
ff692392c9
commit
39c86a791e
4 changed files with 26 additions and 26 deletions
|
@ -206,6 +206,15 @@ function makeZoteroContext(isConnector) {
|
|||
.getService(Ci.mozIJSSubScriptLoader)
|
||||
.loadSubScript("chrome://zotero/content/xpcom/citeproc.js", zContext.Zotero.CiteProc);
|
||||
|
||||
// Load WPD into Zotero.WebPageDump namespace
|
||||
zContext.Zotero.WebPageDump = {"Zotero":zContext.Zotero};
|
||||
Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
|
||||
.getService(Components.interfaces.mozIJSSubScriptLoader)
|
||||
.loadSubScript("chrome://zotero/content/webpagedump/common.js", zContext.Zotero.WebPageDump);
|
||||
Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
|
||||
.getService(Components.interfaces.mozIJSSubScriptLoader)
|
||||
.loadSubScript("chrome://zotero/content/webpagedump/domsaver.js", zContext.Zotero.WebPageDump);
|
||||
|
||||
// Load remaining xpcomFiles
|
||||
for (var i=1; i<xpcomFilesAll.length; i++) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue