From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 17 Jan 2017 17:24:03 +0100 Subject: [PATCH] change source-directory for fetching images/js files since they will be served from `/novnc/` also change the directory in the build script Signed-off-by: Dominik Csapak --- app/ui.js | 4 ++-- vnc.html | 50 +++++++++++++++++++++++++------------------------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/app/ui.js b/app/ui.js index ef2c77f..1605565 100644 --- a/app/ui.js +++ b/app/ui.js @@ -64,7 +64,7 @@ const UI = { // Translate the DOM l10n.translateDOM(); - WebUtil.fetchJSON('./package.json') + WebUtil.fetchJSON('/novnc/package.json') .then((packageInfo) => { Array.from(document.getElementsByClassName('noVNC_version')).forEach(el => el.innerText = packageInfo.version); }) @@ -1767,7 +1767,7 @@ l10n.setup(LINGUAS); if (l10n.language === "en" || l10n.dictionary !== undefined) { UI.prime(); } else { - WebUtil.fetchJSON('app/locale/' + l10n.language + '.json') + WebUtil.fetchJSON('/novnc/app/locale/' + l10n.language + '.json') .then((translations) => { l10n.dictionary = translations; }) .catch(err => Log.Error("Failed to load translations: " + err)) .then(UI.prime); diff --git a/vnc.html b/vnc.html index 12db665..396ded8 100644 --- a/vnc.html +++ b/vnc.html @@ -26,19 +26,19 @@ - + - + - + - + - + @@ -63,51 +63,51 @@

no
VNC

-
-
-
- - - - - -
-
- Power + Power
@@ -116,13 +116,13 @@
-
- Clipboard + Clipboard

@@ -132,19 +132,19 @@
- -
  • - Settings + Settings
  • @@ -235,7 +235,7 @@
- @@ -254,7 +254,7 @@
- Connect + Connect
@@ -298,8 +298,8 @@