Ensure high-dpi icons are loaded in React components
This commit is contained in:
parent
90a70f7c31
commit
f5c4fb06e1
7 changed files with 83 additions and 66 deletions
|
@ -152,7 +152,13 @@ var isFirstLoadThisSession = true;
|
|||
var zContext = null;
|
||||
var initCallbacks = [];
|
||||
var zInitOptions = {};
|
||||
Components.utils.import('resource://zotero/require.js');
|
||||
|
||||
// Components.utils.import('resource://zotero/require.js');
|
||||
// Not using Cu.import here since we don't want the require module to be cached
|
||||
// for includes within ZoteroPane or other code, where we want the window instance available to modules.
|
||||
Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
|
||||
.getService(Components.interfaces.mozIJSSubScriptLoader)
|
||||
.loadSubScript('resource://zotero/require.js');
|
||||
|
||||
ZoteroContext = function() {}
|
||||
ZoteroContext.prototype = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue