]> git.proxmox.com Git - novnc-pve.git/blame - debian/patches/0008-add-replaceable-snippets-in-vnc.html.patch
bump version to 1.4.0-3
[novnc-pve.git] / debian / patches / 0008-add-replaceable-snippets-in-vnc.html.patch
CommitLineData
2b8dde16 1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
fe91e9e1
DC
2From: Dominik Csapak <d.csapak@proxmox.com>
3Date: Fri, 20 Jan 2017 10:16:09 +0100
bf74ff33 4Subject: [PATCH] add replaceable snippets in vnc.html
fe91e9e1
DC
5
6so that we can insert the username/csrftoken via search/replace
7
8Signed-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
13diff --git a/vnc.html b/vnc.html
f422faae 14index 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