diff options
author | Niko Lehto <nikle@cendio.se> | 2019-09-04 15:05:14 +0200 |
---|---|---|
committer | Niko Lehto <nikle@cendio.se> | 2019-09-04 15:05:14 +0200 |
commit | c90245da2542b7e2072f74b3e231e4dbfeb72ce2 (patch) | |
tree | eb29c961156e1689ec8c395c8fcb646be1218cf0 /app/ui.js | |
parent | 8d6f686b596dab2d4fa4bd23ad5ebac5ad635069 (diff) | |
download | novnc-c90245da2542b7e2072f74b3e231e4dbfeb72ce2.tar.gz |
Restore page name after disconnect
Diffstat (limited to 'app/ui.js')
-rw-r--r-- | app/ui.js | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) { |