From afae4f3b9682e723380481e781f9f5c8dc04ec0d Mon Sep 17 00:00:00 2001 From: Wayne Chen Date: Wed, 26 Sep 2018 15:33:57 -0700 Subject: [PATCH] adding toolbar reappearing --- scripts/system/interstitialPage.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/system/interstitialPage.js b/scripts/system/interstitialPage.js index 22ff6eb4b4..4b48ce66d4 100644 --- a/scripts/system/interstitialPage.js +++ b/scripts/system/interstitialPage.js @@ -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));