adding toolbar reappearing

This commit is contained in:
Wayne Chen 2018-09-26 15:33:57 -07:00
parent db77cbcbc1
commit afae4f3b96

View file

@ -422,8 +422,14 @@
endAudio();
currentDomain = "no domain";
timer = null;
// The toolbar doesn't become visible in time to match the speed of
// the signal handling of redirectErrorStateChanged in both this script
// and the redirectOverlays.js script. Use a sleep function to ensure
// the toolbar becomes visible again.
sleep(300);
toolbar.writeProperty("visible", true);
if (!HMD.active) {
toolbar.writeProperty("visible", true);
}
return;
} else if ((physicsEnabled && (currentProgress >= (TOTAL_LOADING_PROGRESS - EPSILON)))) {
updateOverlays((physicsEnabled || connectionToDomainFailed));