mirror of
https://github.com/novnc/noVNC.git
synced 2026-05-26 23:19:41 +00:00
Remove double unescaping of title
Commit fa5b334dcb by Joel Martin changed
getQueryVal() to always decode the value using decodeURIComponent(), but
unescape() is still used for extracting the title, leading to
double-unescaping.
As unescape() is deprecated anyway, remove the last user.
Cc: Joel Martin <github@martintribe.org>
Cc: Anthony Young <sleepsonthefloor@gmail.com>
This commit is contained in:
@@ -206,7 +206,7 @@
|
||||
document.getElementById('xvpResetButton').onclick = xvpReset;
|
||||
|
||||
WebUtil.init_logging(WebUtil.getConfigVar('logging', 'warn'));
|
||||
document.title = unescape(WebUtil.getConfigVar('title', 'noVNC'));
|
||||
document.title = WebUtil.getConfigVar('title', 'noVNC');
|
||||
// By default, use the host and port of server that served this file
|
||||
var host = WebUtil.getConfigVar('host', window.location.hostname);
|
||||
var port = WebUtil.getConfigVar('port', window.location.port);
|
||||
|
||||
Reference in New Issue
Block a user