mirror of
https://github.com/schollz/hostyoself.git
synced 2026-01-23 02:15:14 +00:00
bug fix: browser reconnect after disconnect
This commit is contained in:
parent
66d39b9503
commit
8ff76da85e
1 changed files with 8 additions and 0 deletions
8
static/main.js
vendored
8
static/main.js
vendored
|
|
@ -164,6 +164,14 @@ const socketMessageListener = (event) => {
|
|||
};
|
||||
const socketOpenListener = (event) => {
|
||||
consoleLog('[info] connected');
|
||||
if (isConnected == true) {
|
||||
// reconnect if was connected and got disconnected
|
||||
socketSend({
|
||||
type: "domain",
|
||||
message: document.getElementById("inputDomain").value,
|
||||
key: document.getElementById("inputKey").value,
|
||||
})
|
||||
}
|
||||
};
|
||||
|
||||
const socketCloseListener = (event) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue