Skip to content

Commit

Permalink
src: html: watcher: Fix address
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
  • Loading branch information
patrickelectric committed Feb 2, 2023
1 parent 8994abb commit 4877b32
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/html/watcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@
<pre><code id="json-data"></code></pre>
</div>
<script>
let WSAPI = `${window.location.protocol == "https" ? "wss" : "ws"}://${
window.location.host.split(":")[0]
}:8088`;
WSAPI = "ws://192.168.0.46:6040"
const path = window.location.pathname.substring(0, window.location.pathname.lastIndexOf('/'))
const WSAPI = `ws://${window.location.host}${path}`

const app = Vue.createApp({
mounted() {
Expand Down

0 comments on commit 4877b32

Please sign in to comment.