const ZOTERO_CONTRACTID = '@zotero.org/Zotero;1'; const ZOTERO_CLASSNAME = 'Zotero'; const ZOTERO_CID = Components.ID('{e4c61080-ec2d-11da-8ad9-0800200c9a66}'); const ZOTERO_IID = Components.interfaces.chnmIZoteroService; //unused const Cc = Components.classes; const Ci = Components.interfaces; // Assign the global scope to a variable to passed via wrappedJSObject var ZoteroWrapped = this; /******************************************************************** * Include the core objects to be stored within XPCOM *********************************************************************/ var xpcomFiles = [ 'zotero', 'annotate', 'attachments', 'collectionTreeView', 'commons', 'csl', 'dataServer', 'data_access', 'data/dataObjects', 'data/cachedTypes', 'data/item', 'data/items', 'data/collection', 'data/collections', 'data/creator', 'data/creators', 'data/group', 'data/groups', 'data/itemFields', 'data/notes', 'data/libraries', 'data/relation', 'data/relations', 'data/tag', 'data/tags', 'db', 'debug', 'duplicate', 'enstyle', 'error', 'file', 'fulltext', 'id', 'ingester', 'integration', 'integration_compat', 'itemTreeView', 'mime', 'mimeTypeHandler', 'notifier', 'progressWindow', 'proxy', 'quickCopy', 'report', 'schema', 'search', 'style', 'sync', 'storage', 'storage/session', 'storage/zfs', 'storage/webdav', 'timeline', 'translate', 'uri', 'utilities', 'zeroconf' ]; for (var i=0; i