mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +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();
|
||||
}
|
||||
|
||||
Window.domainChanged.connect(function () {
|
||||
beacons = {};
|
||||
});
|
||||
|
||||
Script.update.connect(function() {
|
||||
AvatarList.getAvatarIdentifiers().forEach(function(avatarSessionUUID) {
|
||||
updateBeacon(avatarSessionUUID);
|
||||
|
|
Loading…
Reference in a new issue