From 85bbeda9ae11b8b9cc92a0b2a4540992f963fd7c Mon Sep 17 00:00:00 2001 From: ekzyis Date: Fri, 24 Jan 2025 23:35:51 +0100 Subject: [PATCH] Show controls by default --- pages/overlay.templ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);