Correcting path to package.json for running at a path other than root.

This commit is contained in:
Alvin Townsend 2020-01-31 11:34:53 +01:00
parent 71bb3fdfa5
commit 546edcd4a0
1 changed files with 1 additions and 1 deletions

View File

@ -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);
})