Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ node_modules
dist
dist-ssr
*.local
.cache

# Editor directories and files
.vscode/*
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!-- You cannot use module imports with AFrame -->
<!-- https://github.com/aframevr/aframe/issues/4038 -->
<!-- https://aframe.io/docs/1.3.0/introduction/javascript-events-dom-apis.html#where-to-place-javascript-code-for-a-frame -->
<script src="https://aframe.io/releases/1.3.0/aframe.min.js"></script>
<!-- Hence we are using legacy Parcel for bundling -->
<script src="/main.js"></script>
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const HyperbeamPromise = import("@hyperbeam/web")
import AFRAME from "aframe"
import Hyperbeam from "@hyperbeam/web"

AFRAME.registerComponent('hyperbeam', {
async init() {
Expand Down Expand Up @@ -36,7 +37,6 @@ AFRAME.registerComponent('hyperbeam', {
}

// Render the Hyperbeam computer
const Hyperbeam = (await HyperbeamPromise).default
const hb = await Hyperbeam(hbcontainer, embedURL, {
frameCb: (frame) => {
if (!texture.image) {
Expand Down
Loading