Skip to content

Commit

Permalink
Deploying to gh-pages from @ 938786d πŸš€
Browse files Browse the repository at this point in the history
  • Loading branch information
ryo33 committed Jun 11, 2024
1 parent 3e98fad commit 97c59a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@
} from './hug.js'
import { Socket } from "./phoenix.esm.js"

let params = new URLSearchParams(window.location.search);
var socket;
let reconnect = () => {
if (socket) {
socket.disconnect();
}
let params = new URLSearchParams(window.location.search);
if (params.get("local")) {
socket = new Socket("ws://localhost:4000/socket", { params: {} })
} else {
Expand Down

0 comments on commit 97c59a2

Please sign in to comment.