1 From c3d885b78fd816201ed485eb7a681ce1fcf3a122 Mon Sep 17 00:00:00 2001
2 From: Dominik Csapak <d.csapak@proxmox.com>
3 Date: Fri, 20 Jan 2017 10:16:09 +0100
4 Subject: [PATCH 7/9] add replaceable snippets in vnc.html
6 so that we can insert the username/csrftoken via search/replace
8 Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 1 file changed, 7 insertions(+), 1 deletion(-)
13 diff --git a/vnc.html b/vnc.html
14 index e789d04..1423f78 100644
19 http://example.com/#host=HOST&port=PORT&encrypt=1
21 - <title>noVNC</title>
22 + <title>[% nodename %] - Proxmox Console</title>
24 <meta charset="utf-8" />
28 <!-- this is included as a normal file in order to catch script-loading errors as well -->
29 <script type="text/javascript" src="/novnc/app/error-handler.js"></script>
30 + <script type="text/javascript">
31 + if (typeof(PVE) === 'undefined') PVE = {};
32 + PVE.UserName = '[% username %]';
33 + PVE.CSRFPreventionToken = '[% token %]';
34 + INCLUDE_URI='/novnc/include';
37 <!-- begin scripts -->
38 <!-- promise polyfills promises for IE11 -->