mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 17:29:47 +02:00
reset avatar beacons on domain change
This commit is contained in:
parent
dfb4c7cf89
commit
387f73b349
1 changed files with 4 additions and 0 deletions
|
@ -64,6 +64,10 @@ function updateBeacon(avatarSessionUUID) {
|
||||||
beacons[avatarSessionUUID].update();
|
beacons[avatarSessionUUID].update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Window.domainChanged.connect(function () {
|
||||||
|
beacons = {};
|
||||||
|
});
|
||||||
|
|
||||||
Script.update.connect(function() {
|
Script.update.connect(function() {
|
||||||
AvatarList.getAvatarIdentifiers().forEach(function(avatarSessionUUID) {
|
AvatarList.getAvatarIdentifiers().forEach(function(avatarSessionUUID) {
|
||||||
updateBeacon(avatarSessionUUID);
|
updateBeacon(avatarSessionUUID);
|
||||||
|
|
Loading…
Reference in a new issue