From ea77557e387500c6342077d6344f05cbe9a3d678 Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Fri, 7 Jul 2017 08:08:52 -0700 Subject: [PATCH] Correctly close PAL when switching domains --- scripts/system/pal.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/system/pal.js b/scripts/system/pal.js index 0500c13f9b..264066558e 100644 --- a/scripts/system/pal.js +++ b/scripts/system/pal.js @@ -865,6 +865,9 @@ function avatarDisconnected(nodeID) { function clearLocalQMLDataAndClosePAL() { sendToQml({ method: 'clearLocalQMLData' }); + if (onPalScreen) { + tablet.gotoHomeScreen(); + } } function avatarAdded(avatarID) {