KASM-4493 parseFloat from string before passing to isNumber (#71)
This commit is contained in:
parent
9aca68d9fe
commit
bc9421b6c8
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue