Skip to content

Commit

Permalink
- Updated e-wall permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidArayan committed Mar 25, 2024
1 parent f2c1529 commit 5fb4600
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions plattar-web/elements/ewall-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,10 @@ const BaseElement = require("./base/base-element.js");
class EWallElement extends BaseElement {
constructor() {
super();

const tag = document.createElement("script");
tag.src = "https://cdn.8thwall.com/web/iframe/iframe.js";
tag.defer = true;
}

connectedCallback() {
super.connectedCallback();

// this is the iframe ID
const id = this.element.controller.id;

const onLoad = () => {
if (window.XRIFrame) {
window.XRIFrame.registerXRIFrame(id);
}
}

window.addEventListener("load", onLoad, false)
}

get permissions() {
return ["camera", "autoplay", "xr-spatial-tracking", "gyroscope", "accelerometer"];
return ["camera *", "autoplay *", "xr-spatial-tracking *", "gyroscope *", "accelerometer *", "magnetometer *"];
}

get elementType() {
Expand Down

0 comments on commit 5fb4600

Please sign in to comment.