Show controls by default

This commit is contained in:
ekzyis 2025-01-24 23:35:51 +01:00
parent 09e2c95651
commit 85bbeda9ae
1 changed files with 2 additions and 2 deletions

View File

@ -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);