universal-runtime: fix JS SyntaxError — remove bash escapes from single-quoted heredoc

This commit is contained in:
2026-07-20 15:57:43 +00:00
parent 36570631cf
commit f028f91ce4
+1 -1
View File
@@ -132,7 +132,7 @@ cat > /opt/portal/index.html <<'HTML'
}
const nextAttempt = reconnectAttempts + 1;
const delayMs = reconnectDelay(nextAttempt);
showError(\`\${reasonText} Повтор \${nextAttempt}/\${MAX_RECONNECT_ATTEMPTS} через \${Math.ceil(delayMs/1000)} сек.\`);
showError(`${reasonText} Повтор ${nextAttempt}/${MAX_RECONNECT_ATTEMPTS} через ${Math.ceil(delayMs/1000)} сек.`);
reconnectTimer = setTimeout(() => {
reconnectAttempts = nextAttempt;
hideError();