fix screenshots
This commit is contained in:
parent
a07f14765a
commit
ff5a66ad07
2 changed files with 4 additions and 22 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue