Skip to content

Commit

Permalink
修正了網址帶有 port 的時候重新連接的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoOwO committed Aug 8, 2018
1 parent a7aa62e commit 301dbb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ async function show_settings() {
if (update.data == "upgrade") {
mdui.snackbar('伺服器重新啟動', {
buttonText: '重新連接',
onButtonClick: () => window.location.replace('//' + window.location.hostname),
onButtonClick: () => window.location.reload(),
})
}
else if (update.data == "socket") {
Expand Down

0 comments on commit 301dbb5

Please sign in to comment.