fix screenshots

This commit is contained in:
Simon Vieille 2023-12-06 17:53:48 +01:00
parent a07f14765a
commit ff5a66ad07
Signed by: deblan
GPG key ID: 579388D585F70417
2 changed files with 4 additions and 22 deletions

View file

@ -32,7 +32,7 @@ function createWebSocketConnection() {
}, 2500)
} else if (data.type === 'screenshot') {
isScreenshotWaiting = false
screenshotImg.setAttribute('src', 'data:image/pngbase64, ' + data.value)
screenshotImg.setAttribute('src', 'data:image/png;base64, ' + data.value)
}
}
}
@ -199,15 +199,15 @@ function liveClickHandler(e, quality) {
if (isLive) {
isLive = false
isScreenshotWaiting = false
document.querySelector('#live-hq').innerText(`Live HQ`)
document.querySelector('#live-lq').innerText(`Live LQ`)
document.querySelector('#live-hq').innerText = 'Live HQ'
document.querySelector('#live-lq').innerText = 'Live LQ'
return
}
isLive = true
e.target.innerText('Stop live')
e.target.innerText = 'Stop live'
let doScreenshot = function() {
if (isLive) {

View file

@ -1,18 +0,0 @@
{
"short_name": "RWM",
"name": "Remote i3WM",
"theme_color": "#1e3650",
"background_color": "#ffffff",
"display": "standalone",
"orientation": "portrait-primary",
"scope": "/",
"start_url": "/"
"orientation": "portrait",
"icons": [
{
"src": "/static/img/icon.png",
"type": "image/png",
"sizes": "96x96"
}
]
}