diff --git a/pages/overlay.templ b/pages/overlay.templ index 007f512..2886435 100644 --- a/pages/overlay.templ +++ b/pages/overlay.templ @@ -128,7 +128,7 @@ templ Overlay(lnurl string, lnaddr string) { } const params = new URLSearchParams(window.location.search) - if (params.has("config", 1)) { + if (!params.has("stream", 1) && (!params.has("config") || params.has("config", 1))) { showControls() } @@ -212,7 +212,7 @@ templ Overlay(lnurl string, lnaddr string) { }) function updateStreamUrl() { - const params = new URLSearchParams(); + const params = new URLSearchParams({ stream: 1 }); const [qrX,qrY] = localStorage.getItem('qr-position')?.split(',').map(Number) ?? [0,0]; params.set("qrX", qrX); params.set("qrY", qrY);