From b730c457caa9f5535b1b4b53ea1f9ef3cb199329 Mon Sep 17 00:00:00 2001 From: Saracen Date: Thu, 9 May 2019 18:08:36 +0100 Subject: [PATCH] Replace tabs with spaces --- scripts/system/away.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/system/away.js b/scripts/system/away.js index 2e4a5d507e..2d345c9821 100644 --- a/scripts/system/away.js +++ b/scripts/system/away.js @@ -285,10 +285,10 @@ function maybeGoAway() { if (Reticle.mouseCaptured !== wasMouseCaptured) { wasMouseCaptured = !wasMouseCaptured; if (!wasMouseCaptured) { - if (enterAwayStateWhenFocusLostInVR) { - goAway(); - return; - } + if (enterAwayStateWhenFocusLostInVR) { + goAway(); + return; + } } } @@ -354,13 +354,13 @@ eventMapping.from(Controller.Standard.Start).peek().to(goActive); Controller.enableMapping(eventMappingName); function awayStateWhenFocusLostInVRChanged(enabled) { - enterAwayStateWhenFocusLostInVR = enabled; + enterAwayStateWhenFocusLostInVR = enabled; } Script.scriptEnding.connect(function () { Script.clearInterval(maybeIntervalTimer); goActive(); - HMD.awayStateWhenFocusLostInVRChanged.disconnect(awayStateWhenFocusLostInVRChanged); + HMD.awayStateWhenFocusLostInVRChanged.disconnect(awayStateWhenFocusLostInVRChanged); Controller.disableMapping(eventMappingName); Controller.mousePressEvent.disconnect(goActive); Controller.keyPressEvent.disconnect(maybeGoActive);