simplify ternary expression

Co-Authored-By: dkanada <dkanada@users.noreply.github.com>
This commit is contained in:
Vasily
2019-01-11 23:12:11 +09:00
committed by GitHub
parent 3eb533d4bb
commit dd3d5ef9dc
+1 -1
View File
@@ -1040,7 +1040,7 @@ var Dashboard = {
}, appRouter.showSelectServer = function() {
AppInfo.isNativeApp ? Dashboard.navigate("selectserver.html") : Dashboard.navigate("login.html")
}, appRouter.showWelcome = function() {
AppInfo.isNativeApp ? Dashboard.navigate("selectserver.html") : Dashboard.navigate("login.html")
Dashboard.navigate(AppInfo.isNativeApp ? "selectserver.html" : "login.html")
}, appRouter.showSettings = function() {
Dashboard.navigate("mypreferencesmenu.html")
}, appRouter.showGuide = function() {