|
|
|
@ -317,12 +317,12 @@ button.primary:hover{
|
|
|
|
|
var c = types.indexOf(data.type);
|
|
|
|
|
if (c < current) { return console.error(data); }
|
|
|
|
|
try {
|
|
|
|
|
var a = document.querySelector('.cp-loading-spinner-container');
|
|
|
|
|
if (a) { a.style.display = 'none'; }
|
|
|
|
|
var b = document.querySelector('.cp-loading-progress-list');
|
|
|
|
|
if (b) { b.innerHTML = makeList(data); }
|
|
|
|
|
var c = document.querySelector('.cp-loading-progress-container');
|
|
|
|
|
if (c) { c.innerHTML = makeBar(data); }
|
|
|
|
|
var el1 = document.querySelector('.cp-loading-spinner-container');
|
|
|
|
|
if (el1) { el1.style.display = 'none'; }
|
|
|
|
|
var el2 = document.querySelector('.cp-loading-progress-list');
|
|
|
|
|
if (el2) { el2.innerHTML = makeList(data); }
|
|
|
|
|
var el3 = document.querySelector('.cp-loading-progress-container');
|
|
|
|
|
if (el3) { el3.innerHTML = makeBar(data); }
|
|
|
|
|
} catch (e) { console.error(e); }
|
|
|
|
|
};
|
|
|
|
|
window.CryptPad_updateLoadingProgress = updateLoadingProgress;
|
|
|
|
|