reset avatar beacons on domain change

This commit is contained in:
Thijs Wenker 2016-12-09 02:11:05 +01:00
parent dfb4c7cf89
commit 387f73b349

View file

@ -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);