Fix quality presets not applying fully on refresh (#51)
Co-authored-by: matt <matt@kasmweb.com>
This commit is contained in:
parent
6e2febb0aa
commit
59aec69dee
|
@ -83,8 +83,9 @@ const UI = {
|
||||||
|
|
||||||
// Render default UI and initialize settings menu
|
// Render default UI and initialize settings menu
|
||||||
start() {
|
start() {
|
||||||
|
//initialize settings then apply quality presents
|
||||||
UI.initSettings();
|
UI.initSettings();
|
||||||
|
UI.updateQuality();
|
||||||
|
|
||||||
// Translate the DOM
|
// Translate the DOM
|
||||||
l10n.translateDOM();
|
l10n.translateDOM();
|
||||||
|
@ -1400,6 +1401,9 @@ const UI = {
|
||||||
UI.rfb.clipboardBinary = supportsBinaryClipboard() && UI.rfb.clipboardSeamless;
|
UI.rfb.clipboardBinary = supportsBinaryClipboard() && UI.rfb.clipboardSeamless;
|
||||||
UI.rfb.enableWebRTC = UI.getSetting('enable_webrtc');
|
UI.rfb.enableWebRTC = UI.getSetting('enable_webrtc');
|
||||||
UI.rfb.mouseButtonMapper = UI.initMouseButtonMapper();
|
UI.rfb.mouseButtonMapper = UI.initMouseButtonMapper();
|
||||||
|
if (UI.rfb.videoQuality === 5) {
|
||||||
|
UI.rfb.enableQOI = true;
|
||||||
|
}
|
||||||
|
|
||||||
//Only explicitly request permission to clipboard on browsers that support binary clipboard access
|
//Only explicitly request permission to clipboard on browsers that support binary clipboard access
|
||||||
if (supportsBinaryClipboard()) {
|
if (supportsBinaryClipboard()) {
|
||||||
|
@ -1441,7 +1445,6 @@ const UI = {
|
||||||
if (Number.isFinite(UI.rfb.idleDisconnect)) {
|
if (Number.isFinite(UI.rfb.idleDisconnect)) {
|
||||||
idleDisconnectInS = parseFloat(UI.rfb.idleDisconnect) * 60;
|
idleDisconnectInS = parseFloat(UI.rfb.idleDisconnect) * 60;
|
||||||
}
|
}
|
||||||
console.log("Current idle time " + timeSinceLastActivityInS + " max value is " + idleDisconnectInS);
|
|
||||||
|
|
||||||
if (timeSinceLastActivityInS > idleDisconnectInS) {
|
if (timeSinceLastActivityInS > idleDisconnectInS) {
|
||||||
parent.postMessage({ action: 'idle_session_timeout', value: 'Idle session timeout exceeded'}, '*' );
|
parent.postMessage({ action: 'idle_session_timeout', value: 'Idle session timeout exceeded'}, '*' );
|
||||||
|
|
Loading…
Reference in New Issue