Skip to content

Commit

Permalink
Use stock script
Browse files Browse the repository at this point in the history
For pre-Dataverse 6.4 (which doesn't recognize the *.glb files, one can
edit the Accept header in the voyager-explorer.min.js script to accept *
in addition to text/plain (there is only one place this happens in their
current script so easy to find). 6.4, in addition to adding the
mimetype, changes the file download api to @produce */* (making
text/plain an OK request rather than a 406 error).
  • Loading branch information
qqmyers committed Aug 8, 2024
1 parent 41e6f1e commit 697cf3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion previewers/betatest/js/voyager.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ function writeContent(fileUrl, file, title, authors) {
const fileName = fileUrl.substring(lastIndexOfChar + 1);
console.log(fileUrl);
$("voyager-explorer").attr("root", rootUrl).attr("model", fileName);
$.getScript("lib/voyager-explorer.min.v0.42.1.gdcc.js");
$.getScript("https://3d-api.si.edu/resources/js/v0.43.0/voyager-explorer.min.js");
}

0 comments on commit 697cf3d

Please sign in to comment.