KASM-4493 parseFloat from string before passing to isNumber (#71)

This commit is contained in:
Richard Koliser 2023-06-06 05:31:54 -04:00 committed by GitHub
parent 9aca68d9fe
commit bc9421b6c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -56,4 +56,4 @@ KasmVNC has a built in web server and the web code is baked into KasmVNC. There
## Development
The noVNC code is webpacked for performance reasons. The CI pipeline in the KasmVNC project is repsonsible for building the web code and packaging it with KasmVNC.
The noVNC code is webpacked for performance reasons. The CI pipeline in the KasmVNC project is responsible for building the web code and packaging it with KasmVNC.

View File

@ -1468,7 +1468,7 @@ const UI = {
const timeSinceLastActivityInS = (Date.now() - UI.rfb.lastActiveAt) / 1000;
let idleDisconnectInS = 1200; //20 minute default
if (Number.isFinite(UI.rfb.idleDisconnect)) {
if (Number.isFinite(parseFloat(UI.rfb.idleDisconnect))) {
idleDisconnectInS = parseFloat(UI.rfb.idleDisconnect) * 60;
}