Fix display of some icons in Standalone

This commit is contained in:
Dan Stillman 2016-07-21 14:07:27 -04:00
parent 70a91f9674
commit 9077b2f495
3 changed files with 7 additions and 5 deletions

View file

@ -86,9 +86,7 @@ var ZoteroOverlay = new function()
observerService.addObserver(zoteroObserver, "browser-delayed-startup-finished", false);
// Set flags for hi-res displays
Zotero.hiDPI = window.devicePixelRatio > 1;
Zotero.hiDPISuffix = Zotero.hiDPI ? "@2x" : "";
ZoteroPane.init();
// Clear old Zotero icon pref
var prefBranch = Components.classes["@mozilla.org/preferences-service;1"]
@ -105,8 +103,6 @@ var ZoteroOverlay = new function()
Zotero.logError(e);
}
ZoteroPane.init();
// TODO: Add only when progress window is open
document.getElementById('appcontent').addEventListener('mousemove', Zotero.ProgressWindowSet.updateTimers, false);

View file

@ -103,6 +103,8 @@ Components.utils.import("resource://gre/modules/osfile.jsm");
this.unlockDeferred;
this.unlockPromise;
this.hiDPISuffix = "";
var _startupErrorHandler;
var _zoteroDirectory = false;
var _localizedStringBundle;

View file

@ -82,6 +82,10 @@ var ZoteroPane = new function()
window.document.documentElement.setAttribute('sizemode', 'normal');
}
// Set flags for hi-res displays
Zotero.hiDPI = window.devicePixelRatio > 1;
Zotero.hiDPISuffix = Zotero.hiDPI ? "@2x" : "";
// Set "Report Errors..." label via property rather than DTD entity,
// since we need to reference it in script elsewhere
document.getElementById('zotero-tb-actions-reportErrors').setAttribute('label',