diff --git a/panel/public/assets/js/admin.js b/panel/public/assets/js/admin.js index f340ebd..d23bc77 100644 --- a/panel/public/assets/js/admin.js +++ b/panel/public/assets/js/admin.js @@ -1943,7 +1943,7 @@ ${dbs.map(d=>` window.applyNovaCPXUpdate = async () => { Nova.confirm('Apply NovaCPX update? PHP syntax is checked first, and a backup is taken automatically. The panel will self-restore if anything breaks.', async () => { Nova.loading('Pulling NovaCPX update from GitHub…'); - const res = await Nova.api('system', 'apply-novacpx-update', { method: 'POST' }); + const res = await Nova.api('system', 'apply-update', { method: 'POST' }); Nova.loadingDone(); const d = res?.data; if (!res?.success) { diff --git a/panel/public/assets/js/nova.js b/panel/public/assets/js/nova.js index 61920b7..c3551bf 100644 --- a/panel/public/assets/js/nova.js +++ b/panel/public/assets/js/nova.js @@ -23,7 +23,7 @@ window.Nova = (() => { _barEl.style.width = _barPct + '%'; clearInterval(_barTimer); _barTimer = setInterval(() => { - if (_barPct < 85) { _barPct += (_barPct < 50 ? 8 : _barPct < 70 ? 4 : 1); _barEl.style.width = _barPct + '%'; } + if (_barEl && _barPct < 85) { _barPct += (_barPct < 50 ? 8 : _barPct < 70 ? 4 : 1); _barEl.style.width = _barPct + '%'; } }, 200); } function _barDone() {