close rather than attempt to repair the tablet after a domain change

This commit is contained in:
Seth Alves 2017-01-24 16:03:22 -08:00
parent 827ae7ad4d
commit ced1b61b70

View file

@ -56,9 +56,10 @@
if (tabletShown && UIWebTablet && Overlays.getOverlayType(UIWebTablet.webOverlayID) != "web3d") {
// when we switch domains, the tablet entity gets destroyed and recreated. this causes
// the overlay to be deleted, but not recreated. repair this situation here:
// the overlay to be deleted, but not recreated. If the overlay is deleted for this or any
// other reason, close the tablet.
hideTabletUI();
showTabletUI();
HMD.closeTablet();
} else if (HMD.showTablet && !tabletShown) {
showTabletUI();
} else if (!HMD.showTablet && tabletShown) {