https://github.com/coderofsalvation/aframe-verse-component-scripts
allow certain (external) aframe to load scripts during immersive navigation #aframe-verse
https://github.com/coderofsalvation/aframe-verse-component-scripts
Last synced: about 1 year ago
JSON representation
allow certain (external) aframe to load scripts during immersive navigation #aframe-verse
- Host: GitHub
- URL: https://github.com/coderofsalvation/aframe-verse-component-scripts
- Owner: coderofsalvation
- License: gpl-3.0
- Created: 2022-11-03T15:52:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-22T08:08:00.000Z (about 3 years ago)
- Last Synced: 2025-02-12T06:21:39.084Z (over 1 year ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

An extension for the [aframe-verse component](https://github.com/coderofsalvation/aframe-verse) which allows specific aframe experiences to load (trusted) scripts.
# Usage
Allow certain urls in [aframe-verse.json](https://github.com/coderofsalvation/aframe-verse/aframe-verse.json) to load scripts by adding `scripts:true`:
```json
{
destinations:[
...
{url:"./app3.html", scripts:true},
{url:"https://trustedfriend.com/game.html", scripts:true},
]
}
```
> Advice: don't trust things you should'nt trust :heart:
Just add the `scripts` attribute to your cluster-client ([index.html](https://github.com/coderofsalvation/aframe-verse/blob/main/apps/index.html)):
```
```
Then `game.html` or `app3.html` will have to include their scripts inside the `aframe-verse`-block:
```html