]>
Commit | Line | Data |
---|---|---|
2b8dde16 | 1 | From 0000000000000000000000000000000000000000 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 | |
bf74ff33 | 4 | Subject: [PATCH] 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 | --- | |
e5e59874 DC |
10 | vnc.html | 8 +++++++- |
11 | 1 file changed, 7 insertions(+), 1 deletion(-) | |
fe91e9e1 DC |
12 | |
13 | diff --git a/vnc.html b/vnc.html | |
f422faae | 14 | index 9281009..4ce107a 100644 |
fe91e9e1 DC |
15 | --- a/vnc.html |
16 | +++ b/vnc.html | |
2b8dde16 | 17 | @@ -13,7 +13,7 @@ |
fe91e9e1 DC |
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 | ||
2b8dde16 | 24 | <meta charset="utf-8"> |
fe91e9e1 | 25 | |
f422faae | 26 | @@ -32,6 +32,12 @@ |
e5e59874 DC |
27 | <link rel="preload" as="image" href="/novnc/app/images/warning.svg"> |
28 | ||
f422faae | 29 | <script type="module" crossorigin="anonymous" src="/novnc/app/error-handler.js"></script> |
fe91e9e1 DC |
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> | |
e5e59874 DC |
36 | <script type="module" crossorigin="anonymous" src="/novnc/app/ui.js"></script> |
37 | </head> | |
fe91e9e1 | 38 |