Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
work in progress [might break]
Browse files Browse the repository at this point in the history
  • Loading branch information
coderofsalvation committed Dec 15, 2023
1 parent ae9eae1 commit f6132a2
Show file tree
Hide file tree
Showing 8 changed files with 2,788 additions and 12 deletions.
6 changes: 4 additions & 2 deletions dist/xrfragment.aframe.all.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions dist/xrfragment.aframe.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* v0.5.1 generated at Fri Dec 15 06:46:07 PM CET 2023
* v0.5.1 generated at Fri Dec 15 07:00:04 PM CET 2023
* https://xrfragment.org
* SPDX-License-Identifier: MPL-2.0
*/
Expand Down Expand Up @@ -3089,6 +3089,8 @@ window.AFRAME.registerComponent('xrf', {
let url = opts.xrf.string
let isLocal = url.match(/^#/)
let hasPos = url.match(/pos=/)
let meeting = $('[meeting]') ? $('[meeting]').components['meeting'] : false
if(meeting) meeting.notifyTeleport(url)
if( isLocal && hasPos ){
// local teleports only
let fastFadeMs = 200
Expand Down Expand Up @@ -3504,7 +3506,7 @@ AFRAME.registerComponent('meeting', {
return this
},

notifyTeleport: function(buttons){
notifyTeleport: function(url,buttons){
// send to network
this.sendChat({
content: `${this.data.visitorname} teleported to ${this.roomname}`,
Expand Down
Loading

0 comments on commit f6132a2

Please sign in to comment.