Show controls by default
This commit is contained in:
parent
09e2c95651
commit
85bbeda9ae
|
@ -128,7 +128,7 @@ templ Overlay(lnurl string, lnaddr string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const params = new URLSearchParams(window.location.search)
|
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()
|
showControls()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -212,7 +212,7 @@ templ Overlay(lnurl string, lnaddr string) {
|
||||||
})
|
})
|
||||||
|
|
||||||
function updateStreamUrl() {
|
function updateStreamUrl() {
|
||||||
const params = new URLSearchParams();
|
const params = new URLSearchParams({ stream: 1 });
|
||||||
const [qrX,qrY] = localStorage.getItem('qr-position')?.split(',').map(Number) ?? [0,0];
|
const [qrX,qrY] = localStorage.getItem('qr-position')?.split(',').map(Number) ?? [0,0];
|
||||||
params.set("qrX", qrX);
|
params.set("qrX", qrX);
|
||||||
params.set("qrY", qrY);
|
params.set("qrY", qrY);
|
||||||
|
|
Loading…
Reference in New Issue