mirror of
https://github.com/novnc/noVNC.git
synced 2026-05-26 15:13:34 +00:00
Merge pull request #1361 from alvintownsend/master
Correcting path to package.json for running at a path other than root.
This commit is contained in:
@@ -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);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user