summaryrefslogtreecommitdiff
path: root/app/ui.js
diff options
context:
space:
mode:
authorNiko Lehto <nikle@cendio.se>2019-09-04 15:05:14 +0200
committerNiko Lehto <nikle@cendio.se>2019-09-04 15:05:14 +0200
commitc90245da2542b7e2072f74b3e231e4dbfeb72ce2 (patch)
treeeb29c961156e1689ec8c395c8fcb646be1218cf0 /app/ui.js
parent8d6f686b596dab2d4fa4bd23ad5ebac5ad635069 (diff)
downloadnovnc-c90245da2542b7e2072f74b3e231e4dbfeb72ce2.tar.gz
Restore page name after disconnect
Diffstat (limited to 'app/ui.js')
-rw-r--r--app/ui.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/ui.js b/app/ui.js
index 1909dee..4f683ea 100644
--- a/app/ui.js
+++ b/app/ui.js
@@ -17,6 +17,8 @@ import Keyboard from "../core/input/keyboard.js";
import RFB from "../core/rfb.js";
import * as WebUtil from "./webutil.js";
+const PAGE_TITLE = "noVNC";
+
const UI = {
connected: false,
@@ -1122,6 +1124,8 @@ const UI = {
UI.showStatus(_("Disconnected"), 'normal');
}
+ document.title = PAGE_TITLE;
+
UI.openControlbar();
UI.openConnectPanel();
},
@@ -1615,7 +1619,7 @@ const UI = {
updateDesktopName(e) {
UI.desktopName = e.detail.name;
// Display the desktop name in the document title
- document.title = e.detail.name + " - noVNC";
+ document.title = e.detail.name + " - " + PAGE_TITLE;
},
bell(e) {