universal-runtime: fix JS SyntaxError — remove bash escapes from single-quoted heredoc
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user