Skip to content

Commit d9c799b

Browse files
committed
Fix serious bootloop regression when new github release found
1 parent b4eeec8 commit d9c799b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎www/js/lib/uiUtil.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ function showUpgradeReady (ver, type, url) {
10551055
if (type === 'progress') {
10561056
persistentMessage.innerHTML = 'Download in progress: ' + ver + '%';
10571057
} else {
1058-
const reloadLink = (/load|deploy/.test(type)
1058+
const reloadLink = (/^(?:load|deploy)$/.test(type)
10591059
? ', or reload now'
10601060
: '') + '.)';
10611061
persistentMessage.innerHTML = 'Version ' + ver +
@@ -1064,7 +1064,7 @@ function showUpgradeReady (ver, type, url) {
10641064
document.getElementById('closeUpgradeAlert').addEventListener('click', function () {
10651065
alertBoxPersistent.style.display = 'none';
10661066
});
1067-
if (/load|deploy/.test(type)) {
1067+
if (/^(?:load|deploy)$/.test(type)) {
10681068
if (!params.autoUpdatePWA || type === 'deploy') {
10691069
document.getElementById('reloadNowLink').addEventListener('click', function (e) {
10701070
e.preventDefault();

0 commit comments

Comments
 (0)