feat: config init platform arg

This commit is contained in:
mrxiaozhuox committed 2022-03-10 11:29:27 +08:00
1 parent 1e24b5b416
commit 91a8ce3169
3 files changed
+15 -4

No files matched your search

+3 -1
View File
@@ -1,3 +1,6 @@
// Dioxus-CLI
// https://github.com/DioxusLabs/cli
(function () {
var protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
var url = protocol + '//' + window.location.host + '/_dioxus/ws';
@@ -15,7 +18,6 @@
var ws = new WebSocket(url);
ws.onmessage = (ev) => {
if (ev.data == "reload") {
// alert("reload!!!");
window.location.reload();
}
};