Skip to content

Commit

Permalink
feat(iframe allow): introduce xr-spatial-tracking (#1183)
Browse files Browse the repository at this point in the history
  • Loading branch information
danilowoz authored Aug 22, 2024
1 parent 52fd14f commit 7245731
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sandpack-client/src/clients/runtime/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class SandpackRuntime extends SandpackClient {

this.iframe.setAttribute(
"allow",
"accelerometer; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; clipboard-read; clipboard-write;"
"accelerometer; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; clipboard-read; clipboard-write; xr-spatial-tracking;"
);
}

Expand Down
2 changes: 1 addition & 1 deletion sandpack-client/src/clients/static/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class SandpackStatic extends SandpackClient {

this.iframe.setAttribute(
"allow",
"accelerometer; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; clipboard-write;"
"accelerometer; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; clipboard-read; clipboard-write; xr-spatial-tracking;"
);
}

Expand Down

0 comments on commit 7245731

Please sign in to comment.