fix screenshots
This commit is contained in:
parent
a07f14765a
commit
ff5a66ad07
|
@ -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) {
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue