trystero relative path

This commit is contained in:
Leon van Kammen 2023-12-13 19:27:37 +01:00
parent fe6a604bb3
commit aeb1c7fa84
6 changed files with 12 additions and 69262 deletions

View file

@ -1,5 +1,5 @@
/*
* v0.5.1 generated at Wed Dec 13 07:05:52 PM CET 2023
* v0.5.1 generated at Wed Dec 13 07:23:32 PM CET 2023
* https://xrfragment.org
* SPDX-License-Identifier: MPL-2.0
*/
@ -2862,11 +2862,11 @@ AFRAME.registerComponent('meeting', {
},
trysteroInit: async function(){
const { joinRoom } = await import("/dist/trystero-torrent.min.js");
const { joinRoom } = await import("./../../../dist/trystero-torrent.min.js");
const roomname = document.location.href.replace(/#.*/,'')
const config = this.config = {appId: this.data.id }
const room = this.room = joinRoom(config, roomname )
const config = this.config = {appId: this.data.id }
const room = this.room = joinRoom(config, roomname )
console.log("starting webrtc room: "+roomname)
const idsToNames = this.idsToNames = {}

View file

@ -1,5 +1,5 @@
/*
* v0.5.1 generated at Wed Dec 13 07:05:52 PM CET 2023
* v0.5.1 generated at Wed Dec 13 07:23:32 PM CET 2023
* https://xrfragment.org
* SPDX-License-Identifier: MPL-2.0
*/
@ -2856,11 +2856,11 @@ AFRAME.registerComponent('meeting', {
},
trysteroInit: async function(){
const { joinRoom } = await import("/dist/trystero-torrent.min.js");
const { joinRoom } = await import("./../../../dist/trystero-torrent.min.js");
const roomname = document.location.href.replace(/#.*/,'')
const config = this.config = {appId: this.data.id }
const room = this.room = joinRoom(config, roomname )
const config = this.config = {appId: this.data.id }
const room = this.room = joinRoom(config, roomname )
console.log("starting webrtc room: "+roomname)
const idsToNames = this.idsToNames = {}

69252
dist/xrfragment.module.js vendored

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,5 @@
/*
* v0.5.1 generated at Wed Dec 13 07:05:52 PM CET 2023
* v0.5.1 generated at Wed Dec 13 07:23:32 PM CET 2023
* https://xrfragment.org
* SPDX-License-Identifier: MPL-2.0
*/

View file

@ -1,5 +1,5 @@
/*
* v0.5.1 generated at Wed Dec 13 07:05:52 PM CET 2023
* v0.5.1 generated at Wed Dec 13 07:23:32 PM CET 2023
* https://xrfragment.org
* SPDX-License-Identifier: MPL-2.0
*/

View file

@ -88,7 +88,7 @@ AFRAME.registerComponent('meeting', {
},
trysteroInit: async function(){
const { joinRoom } = await import("/dist/trystero-torrent.min.js");
const { joinRoom } = await import("./../../../dist/trystero-torrent.min.js");
const roomname = document.location.href.replace(/#.*/,'')
const config = this.config = {appId: this.data.id }