Skip to content

Commit

Permalink
fix url
Browse files Browse the repository at this point in the history
  • Loading branch information
pomdtr committed Dec 7, 2023
1 parent a46afc7 commit b3ed4ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function main() {
const params = new URLSearchParams(window.location.search);
let origin: URL
if (params.has("host") || params.has("port")) {
origin = new URL(`${params.get("host") || "localhost"}:${params.get("port") || 9999}`)
origin = new URL(`http://${params.get("host") || "localhost"}:${params.get("port") || 9999}`)
} else if (__TWEETY_ORIGIN__) {
origin = new URL(__TWEETY_ORIGIN__)
} else {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ go 1.20
require (
github.com/creack/pty v1.1.18
github.com/go-chi/chi/v5 v5.0.10
github.com/go-chi/cors v1.2.1
github.com/gorilla/websocket v1.5.0
github.com/phayes/freeport v0.0.0-20220201140144-74d24b5ae9f5
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1
Expand All @@ -13,7 +14,6 @@ require (
)

require (
github.com/go-chi/cors v1.2.1 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
)

0 comments on commit b3ed4ea

Please sign in to comment.