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:
@@ -1571,11 +1571,11 @@ function renderDisplay() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!state?.enabled) {
|
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) {
|
} else if (state.lastError) {
|
||||||
setDisplayStatus(state.lastError, true);
|
setDisplayStatus(state.lastError, true);
|
||||||
} else if (!state.listening) {
|
} else if (!state.listening) {
|
||||||
setDisplayStatus('Starting…');
|
setDisplayStatus('Starting\\u2026');
|
||||||
} else if (state.mdnsConflict) {
|
} else if (state.mdnsConflict) {
|
||||||
setDisplayStatus(
|
setDisplayStatus(
|
||||||
`Another computer is already publishing that name (${state.mdnsConflict}). Use one of the numeric addresses below.`,
|
`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.
|
// when two machines are open is just wrong.
|
||||||
const screens = state.devices || state.viewers;
|
const screens = state.devices || state.viewers;
|
||||||
const extra = state.viewers > screens ? ` (${state.viewers} connections)` : '';
|
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) {
|
} 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) {
|
} else if (displayOnSince && Date.now() - displayOnSince > DISPLAY_FIREWALL_GRACE_MS) {
|
||||||
// On Windows the firewall prompt fires when the server starts listening, not when a
|
// 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
|
// 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.
|
// out. A viewer count stuck at zero is the only hint we get; say it plainly.
|
||||||
setDisplayStatus(
|
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,
|
true,
|
||||||
);
|
);
|
||||||
} else {
|
} 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();
|
renderDisplayUrls();
|
||||||
@@ -1626,7 +1626,7 @@ function scheduleDisplayRefresh() {
|
|||||||
async function toggleDisplayHosting() {
|
async function toggleDisplayHosting() {
|
||||||
const next = !displayState?.enabled;
|
const next = !displayState?.enabled;
|
||||||
btnDisplayToggle.disabled = true;
|
btnDisplayToggle.disabled = true;
|
||||||
setDisplayStatus(next ? 'Starting…' : 'Stopping…');
|
setDisplayStatus(next ? 'Starting\\u2026' : 'Stopping\\u2026');
|
||||||
try {
|
try {
|
||||||
displayState = await window.lineup.display.setEnabled(next);
|
displayState = await window.lineup.display.setEnabled(next);
|
||||||
displayOnSince = next ? Date.now() : 0;
|
displayOnSince = next ? Date.now() : 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user