Merge pull request #755 from dmitrylyzo/native_select_server

Add server select support for NativeShell
This commit is contained in:
dkanada
2020-02-13 16:48:58 +09:00
committed by GitHub
5 changed files with 17 additions and 3 deletions
+7
View File
@@ -221,6 +221,13 @@ var Dashboard = {
};
appHost.getPushTokenInfo();
return capabilities = Object.assign(capabilities, appHost.getPushTokenInfo());
},
selectServer: function () {
if (window.NativeShell && typeof window.NativeShell.selectServer === "function") {
window.NativeShell.selectServer();
} else {
Dashboard.navigate("selectserver.html");
}
}
};