From 8d3f448c1e4a75616d9ea27deab300d694ea112b Mon Sep 17 00:00:00 2001 From: pypy Date: Sun, 1 Nov 2020 12:29:01 +0900 Subject: [PATCH] code formatting --- html/src/vr.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/html/src/vr.js b/html/src/vr.js index b658831a..cbf4312b 100644 --- a/html/src/vr.js +++ b/html/src/vr.js @@ -727,13 +727,13 @@ CefSharp.BindObjectAsync( } }); var bias = new Date(Date.now() - 60000).toJSON(); - var theme = "relax"; + var theme = 'relax'; + if (VRCXStorage.GetBool('isDarkMode') === true) { + theme = 'sunset'; + } notys.forEach((noty) => { if (noty.created_at > bias) { - if (VRCXStorage.GetBool('isDarkMode') === true) { - theme = "sunset"; - } - switch(noty.type) { + switch (noty.type) { case 'OnPlayerJoined': new Noty({ type: 'alert',