fx115: Move Zotero
object initialization to zotero.mjs
This commit is contained in:
parent
c0aab70e03
commit
2051f08b4c
19 changed files with 450 additions and 490 deletions
|
@ -29,14 +29,9 @@ var { Subprocess } = ChromeUtils.import("resource://gre/modules/Subprocess.jsm")
|
|||
var { RemoteTranslate } = ChromeUtils.import("chrome://zotero/content/RemoteTranslate.jsm");
|
||||
var { ContentDOMReference } = ChromeUtils.import("resource://gre/modules/ContentDOMReference.jsm");
|
||||
|
||||
var { Zotero } = ChromeUtils.importESModule("chrome://zotero/content/zotero.mjs");
|
||||
import FilePicker from 'zotero/modules/filePicker';
|
||||
|
||||
var Zotero = Components.classes["@zotero.org/Zotero;1"]
|
||||
// Currently uses only nsISupports
|
||||
//.getService(Components.interfaces.chnmIZoteroService).
|
||||
.getService(Components.interfaces.nsISupports)
|
||||
.wrappedJSObject;
|
||||
|
||||
// Fix JSON stringify 2028/2029 "bug"
|
||||
// Borrowed from http://stackoverflow.com/questions/16686687/json-stringify-and-u2028-u2029-check
|
||||
if (JSON.stringify(["\u2028\u2029"]) !== '["\\u2028\\u2029"]') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue