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:
1 parent
d74d8cf38f
commit
259945799d
6 files changed
+26
-5
No files matched your search
+4
-1
@@ -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 } = {}) {
|
||||
|
||||
Reference in new issue
Block a user