fix(overlay): overlay windows read from the server that served them, no 'Server disconnected' over OBS on localhost (1.89.24)

This commit is contained in:
larssand committed 2026-11-14 13:46:08 +01:00
1 parent d74d8cf38f
commit 259945799d
6 files changed
+26 -5

No files matched your search

+4 -1
View File
@@ -7260,7 +7260,10 @@ function getDefaultBackendUrl() {
}
function getBackendUrl() {
return resolveBackendUrl(state.settings.backendUrl, window.location);
// Overlay windows read from the server that served them (see resolveBackendUrl).
const params = new URLSearchParams(window.location.search);
const overlayPage = /^\/public-overlay(\/|$)/i.test(window.location.pathname) || (params.get("view") === "overlay" && params.has("overlayMode"));
return resolveBackendUrl(state.settings.backendUrl, window.location, { sameOrigin: overlayPage });
}
async function refreshServerBackups({ render = true } = {}) {