Hide unnecesssary error messages from the console

pull/1/head
yflory 4 years ago
parent 0aef54be62
commit e3eef3abaf

@ -330,7 +330,7 @@ button:not(.btn).primary:hover{
var el3 = document.querySelector('.cp-loading-progress-container'); var el3 = document.querySelector('.cp-loading-progress-container');
if (el3) { el3.innerHTML = makeBar(data); } if (el3) { el3.innerHTML = makeBar(data); }
} catch (e) { } catch (e) {
if (!hasErrored) { console.error(e); } //if (!hasErrored) { console.error(e); }
} }
}; };
window.CryptPad_updateLoadingProgress = updateLoadingProgress; window.CryptPad_updateLoadingProgress = updateLoadingProgress;

@ -718,7 +718,7 @@ var factory = function () {
if (cache[uid].mt !== mediaObject) { if (cache[uid].mt !== mediaObject) {
// Add progress for other instances of this tag // Add progress for other instances of this tag
cache[uid].mt.on('progress', function (obj) { cache[uid].mt.on('progress', function (obj) {
if (!mediaObject.bar) { makeProgressBar(cfg, mediaObject); } if (!mediaObject.bar && !cfg.force) { makeProgressBar(cfg, mediaObject); }
emit('progress', { emit('progress', {
progress: obj.progress progress: obj.progress
}); });

Loading…
Cancel
Save