]> git.proxmox.com Git - novnc-pve.git/blob - debian/patches/0007-add-replaceable-snippets-in-vnc.html.patch
upgrade to novnc 1.0.0
[novnc-pve.git] / debian / patches / 0007-add-replaceable-snippets-in-vnc.html.patch
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
5
6 so that we can insert the username/csrftoken via search/replace
7
8 Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
9 ---
10 vnc.html | 8 +++++++-
11 1 file changed, 7 insertions(+), 1 deletion(-)
12
13 diff --git a/vnc.html b/vnc.html
14 index e789d04..1423f78 100644
15 --- a/vnc.html
16 +++ b/vnc.html
17 @@ -15,7 +15,7 @@
18 or the fragment:
19 http://example.com/#host=HOST&port=PORT&encrypt=1
20 -->
21 - <title>noVNC</title>
22 + <title>[% nodename %] - Proxmox Console</title>
23
24 <meta charset="utf-8" />
25
26 @@ -38,6 +38,12 @@
27
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';
35 + </script>
36
37 <!-- begin scripts -->
38 <!-- promise polyfills promises for IE11 -->
39 --
40 2.11.0
41