]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Correcting path to package.json for running at a path other than root.
authorAlvin Townsend <alvin@parkavenuegaming.com>
Fri, 31 Jan 2020 10:34:53 +0000 (11:34 +0100)
committerAlvin Townsend <alvin@parkavenuegaming.com>
Fri, 31 Jan 2020 10:34:53 +0000 (11:34 +0100)
app/ui.js

index 766736ae84367b12664c6d5159847b17585dffc1..3f8745112b5c26bb5cd8023953166ed6db57b38c 100644 (file)
--- a/app/ui.js
+++ b/app/ui.js
@@ -61,7 +61,7 @@ const UI = {
         // Translate the DOM
         l10n.translateDOM();
 
-        WebUtil.fetchJSON('../package.json')
+        WebUtil.fetchJSON('./package.json')
             .then((packageInfo) => {
                 Array.from(document.getElementsByClassName('noVNC_version')).forEach(el => el.innerText = packageInfo.version);
             })