Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
add allow-downloads to iframe, update viewer package
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed May 28, 2024
1 parent f30056f commit 2f847ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 21 deletions.
19 changes: 0 additions & 19 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion web/src/routes/(assets)/[...path]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ $: thumbnailPath = item ? "https://github.com/usd-wg/assets/blob/main" + "/" + i
<div>
{#if globalThis["window"] && window.crossOriginIsolated}

<iframe src={getViewerUrl(absoluteGithubUrl)} sandbox="allow-scripts allow-same-origin" allow="cross-origin-isolated"></iframe>
<iframe title="USD Viewer" src={getViewerUrl(absoluteGithubUrl)}
sandbox="allow-scripts allow-same-origin allow-downloads"
allow="cross-origin-isolated">
</iframe>

{:else}

Expand Down
2 changes: 1 addition & 1 deletion web/src/viewer

0 comments on commit 2f847ff

Please sign in to comment.