renderer: restore the \u escapes in the display-status strings

The previous commit wrote these seven lines with literal em-dashes, ellipses
and curly apostrophes where the app's source has — / … / ’
escapes. JavaScript reads both identically, so nothing behaved differently —
but a reference fork that differs from its upstream by thirty bytes reports
phantom drift every time the two are compared, which is the one job this
snapshot has.
This commit is contained in:
2026-09-23 18:01:45 -04:00
parent d1962f78d8
commit e0c16bf62c
+7 -7
View File
@@ -1571,11 +1571,11 @@ function renderDisplay() {
}
if (!state?.enabled) {
setDisplayStatus('Off — screens around the building can’t see this yet.');
setDisplayStatus('Off \\u2014 screens around the building can\\u2019t see this yet.');
} else if (state.lastError) {
setDisplayStatus(state.lastError, true);
} else if (!state.listening) {
setDisplayStatus('Starting…');
setDisplayStatus('Starting\\u2026');
} else if (state.mdnsConflict) {
setDisplayStatus(
`Another computer is already publishing that name (${state.mdnsConflict}). Use one of the numeric addresses below.`,
@@ -1587,19 +1587,19 @@ function renderDisplay() {
// when two machines are open is just wrong.
const screens = state.devices || state.viewers;
const extra = state.viewers > screens ? ` (${state.viewers} connections)` : '';
setDisplayStatus(`On — ${screens} screen${screens === 1 ? '' : 's'} watching${extra}.`);
setDisplayStatus(`On \\u2014 ${screens} screen${screens === 1 ? '' : 's'} watching${extra}.`);
} else if (state.everHadViewer) {
setDisplayStatus('On — no screens open right now.');
setDisplayStatus('On \\u2014 no screens open right now.');
} else if (displayOnSince && Date.now() - displayOnSince > DISPLAY_FIREWALL_GRACE_MS) {
// On Windows the firewall prompt fires when the server starts listening, not when a
// studio first connects — so localhost looks fine here while every other screen times
// out. A viewer count stuck at zero is the only hint we get; say it plainly.
setDisplayStatus(
`On, but no screen has connected yet. If a studio can’t load the page, Windows Firewall on this computer is probably blocking Band Lineup — it needs to allow TCP port ${state.port} for Private networks.`,
`On, but no screen has connected yet. If a studio can\\u2019t load the page, Windows Firewall on this computer is probably blocking Band Lineup \\u2014 it needs to allow TCP port ${state.port} for Private networks.`,
true,
);
} else {
setDisplayStatus('On — open one of these on any screen in the building.');
setDisplayStatus('On \\u2014 open one of these on any screen in the building.');
}
renderDisplayUrls();
@@ -1626,7 +1626,7 @@ function scheduleDisplayRefresh() {
async function toggleDisplayHosting() {
const next = !displayState?.enabled;
btnDisplayToggle.disabled = true;
setDisplayStatus(next ? 'Starting…' : 'Stopping…');
setDisplayStatus(next ? 'Starting\\u2026' : 'Stopping\\u2026');
try {
displayState = await window.lineup.display.setEnabled(next);
displayOnSince = next ? Date.now() : 0;