summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mannehed <samuel@cendio.se>2016-10-01 00:00:06 +0200
committerSamuel Mannehed <samuel@cendio.se>2016-10-01 01:34:31 +0200
commit74a4a2b46866ec8cd91aff02b309090004a8e9d2 (patch)
tree6959679baf3f3bfbad8aaf868a12df349bb64f78
parent7520ba52d8fa2c94b1d73abb4bee79c97401c107 (diff)
downloadnovnc-74a4a2b46866ec8cd91aff02b309090004a8e9d2.tar.gz
Do not timeout error messages
-rw-r--r--app/ui.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/ui.js b/app/ui.js
index 13c0024..c77b7dd 100644
--- a/app/ui.js
+++ b/app/ui.js
@@ -470,8 +470,8 @@ var UI;
time = 1500;
}
- // A specified time of zero means no timeout
- if (time != 0) {
+ // Error messages do not timeout
+ if (status_type !== 'error') {
UI.statusTimeout = window.setTimeout(UI.hideStatus, time);
}
},