Fix double progress meter in DB upgrade overlay

This commit is contained in:
Dan Stillman 2019-04-20 03:28:47 -04:00
parent 95a9ccae69
commit a85d707226

View file

@ -1429,8 +1429,12 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js");
//let progressMeter = win.ZoteroPane.document.getElementById('zotero-pane-progressmeter'); //let progressMeter = win.ZoteroPane.document.getElementById('zotero-pane-progressmeter');
let doc = win.ZoteroPane.document; let doc = win.ZoteroPane.document;
let container = doc.getElementById('zotero-pane-progressmeter-container'); let container = doc.getElementById('zotero-pane-progressmeter-container');
let progressMeter = doc.createElement('progressmeter'); let id = 'zotero-pane-progressmeter';
progressMeter.id = 'zotero-pane-progressmeter'; let progressMeter = doc.getElementById(id);
if (!progressMeter) {
progressMeter = doc.createElement('progressmeter');
progressMeter.id = id;
}
progressMeter.setAttribute('mode', 'undetermined'); progressMeter.setAttribute('mode', 'undetermined');
if (determinate) { if (determinate) {
progressMeter.mode = 'determined'; progressMeter.mode = 'determined';