]>
Commit | Line | Data |
---|---|---|
4cc9ed08 | 1 | From 492c7d299d770dca563f806eadb6458a24d97b2d Mon Sep 17 00:00:00 2001 |
fe91e9e1 DC |
2 | From: Dominik Csapak <d.csapak@proxmox.com> |
3 | Date: Fri, 20 Jan 2017 10:16:09 +0100 | |
a375b7e5 | 4 | Subject: [PATCH 08/10] add replaceable snippets in vnc.html |
fe91e9e1 DC |
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 | |
4cc9ed08 | 14 | index eca9a54..f63aaa7 100644 |
fe91e9e1 DC |
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 |