cleanup and lint compliance

pull/1/head
ansuz 4 years ago
parent b37fd224b0
commit 30e1c448d3

@ -315,10 +315,17 @@ button.primary:hover{
var hideSpinner = function () {
try {
document.querySelector('.cp-loading-spinner-container').style.display = 'none';
document.querySelector('.cp-loading-spinner-container').setAttribute('style', 'display:none;');
} catch (err) { return; }
};
var getList = function () {
return document.querySelector('.cp-loading-progress-list') || {};
};
var getProgressBar = function () {
return document.querySelector('.cp-loading-progress-container') || {};
};
var hasErrored = false;
var updateLoadingProgress = function (data) {
if (!built || !data) { return; }
@ -326,10 +333,8 @@ button.primary:hover{
if (c < current) { return console.error(data); }
try {
hideSpinner();
var list = document.querySelector('.cp-loading-progress-list');
list && (list.innerHTML = makeList(data));
var container = document.querySelector('.cp-loading-progress-container');
container && (container.innerHTML = makeBar(data));
getList().innerHTML = makeList(data);
getProgressBar().innerHTML = makeBar(data);
} catch (e) {
if (!hasErrored) { console.error(e); }
}

@ -61,7 +61,7 @@ define([
if (window.Proxy) {
var c = console;
window.console = new Proxy(c, {
window.console = new window.Proxy(c, {
get: function (o, k) {
if (k !== 'error') { return o[k]; }
return function () {

Loading…
Cancel
Save