diff --git a/chrome/content/zotero/components/icons.jsx b/chrome/content/zotero/components/icons.jsx index 2647ba4dd5..909cae95e2 100644 --- a/chrome/content/zotero/components/icons.jsx +++ b/chrome/content/zotero/components/icons.jsx @@ -26,7 +26,7 @@ function i(name, svgOrSrc) { const { className } = this.props if (typeof svgOrSrc == 'string') { - if (window.devicePixelRatio >= 0.75) { + if (window.devicePixelRatio >= 1.25) { let parts = svgOrSrc.split('.'); parts[parts.length-2] = parts[parts.length-2] + '@2x'; svgOrSrc = parts.join('.') diff --git a/chrome/content/zotero/include.js b/chrome/content/zotero/include.js index 45e4fd4973..fcb0858de6 100644 --- a/chrome/content/zotero/include.js +++ b/chrome/content/zotero/include.js @@ -7,4 +7,9 @@ var Zotero = Components.classes['@zotero.org/Zotero;1'] .getService(Components.interfaces.nsISupports) .wrappedJSObject; -Components.utils.import('resource://zotero/require.js'); \ No newline at end of file +// 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'); diff --git a/chrome/content/zotero/standalone/standalone.xul b/chrome/content/zotero/standalone/standalone.xul index ad04b99844..ff548bee21 100644 --- a/chrome/content/zotero/standalone/standalone.xul +++ b/chrome/content/zotero/standalone/standalone.xul @@ -46,7 +46,8 @@ windowtype="navigator:browser" title="&brandShortName;" width="1000" height="600" - persist="screenX screenY width height sizemode"> + persist="screenX screenY width height sizemode"> +