]> git.proxmox.com Git - novnc-pve.git/blame - debian/patches/0008-add-replaceable-snippets-in-vnc.html.patch
update noVNC to v1.2.0
[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
2b8dde16 4Subject: [PATCH 08/12] 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---
2b8dde16
DC
10 vnc.html | 10 ++++++++--
11 1 file changed, 8 insertions(+), 2 deletions(-)
fe91e9e1
DC
12
13diff --git a/vnc.html b/vnc.html
2b8dde16 14index fad5d4a..bba7d7d 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
2b8dde16
DC
26@@ -26,7 +26,13 @@
27 <link rel="stylesheet" href="/novnc/app/styles/pve.css" />
fe91e9e1
DC
28
29 <!-- this is included as a normal file in order to catch script-loading errors as well -->
2b8dde16
DC
30- <script src="/novnc/app/error-handler.js"></script>
31+ <script type="text/javascript" src="/novnc/app/error-handler.js"></script>
fe91e9e1
DC
32+ <script type="text/javascript">
33+ if (typeof(PVE) === 'undefined') PVE = {};
34+ PVE.UserName = '[% username %]';
35+ PVE.CSRFPreventionToken = '[% token %]';
36+ INCLUDE_URI='/novnc/include';
37+ </script>
38
39 <!-- begin scripts -->
40 <!-- promise polyfills promises for IE11 -->