Fix loading screen error

pull/1/head
yflory 4 years ago
parent 9d73e3db5f
commit a3bb622df6

@ -333,6 +333,8 @@ button.primary:hover{
window.CryptPad_loadingError = function (err) {
if (!built) { return; }
try {
var node = document.querySelector('.cp-loading-progress');
if (node.parentNode) { node.parentNode.removeChild(node); }
document.querySelector('.cp-loading-spinner-container').setAttribute('style', 'display:none;');
document.querySelector('#cp-loading-message').setAttribute('style', 'display:block;');
document.querySelector('#cp-loading-message').innerText = err;

Loading…
Cancel
Save