Skip to content

Commit

Permalink
upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
techsoftrick committed Mar 20, 2024
1 parent 0380f59 commit 67d66be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion javascripts/common/load_scripts.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var versionNumer
async function loadDynamicScript() {
var result = await fetchVersionNumber();
var versionNumer = result['hcVersion']
versionNumer = result['hcVersion']
var url = `https://cdn.jsdelivr.net/gh/techsoft3d/hoops-web-viewer@20${versionNumer}/hoops_web_viewer.js`

return new Promise((resolve, reject) => {
Expand Down
2 changes: 1 addition & 1 deletion javascripts/conversionService.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function startViewer() {
endpointUri: sessioninfo.endpointUri,
model: "_empty",
boundingPreviewMode: Communicator.BoundingPreviewMode.None,
enginePath: "https://cdn.jsdelivr.net/gh/techsoft3d/hoops-web-viewer",
enginePath: `https://cdn.jsdelivr.net/gh/techsoft3d/hoops-web-viewer@20${versionNumer}`,
rendererType: 0
});

Expand Down

0 comments on commit 67d66be

Please sign in to comment.