Skip to content

Commit 7245731

Browse files
authored
feat(iframe allow): introduce xr-spatial-tracking (#1183)
1 parent 52fd14f commit 7245731

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sandpack-client/src/clients/runtime/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class SandpackRuntime extends SandpackClient {
8585

8686
this.iframe.setAttribute(
8787
"allow",
88-
"accelerometer; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; clipboard-read; clipboard-write;"
88+
"accelerometer; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; clipboard-read; clipboard-write; xr-spatial-tracking;"
8989
);
9090
}
9191

sandpack-client/src/clients/static/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class SandpackStatic extends SandpackClient {
8686

8787
this.iframe.setAttribute(
8888
"allow",
89-
"accelerometer; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; clipboard-write;"
89+
"accelerometer; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; clipboard-read; clipboard-write; xr-spatial-tracking;"
9090
);
9191
}
9292

0 commit comments

Comments
 (0)