Skip to content

Commit

Permalink
fix: dynamic Name routing
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-dietrich committed Sep 8, 2023
1 parent a0839a8 commit 68a3f52
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/components/Modules.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,12 @@ export default {
async sendMessage(subject, body, module_url) {
if (this.ws === null) {
const self = this;
const socket = new WebSocket(
"ws://localhost:8000/data/wss/" +
(document.location.protocol === "http:" ? "ws" : "wss") +
"://" +
document.location.host +
"/data/wss/" +
this.$store.state.class_.id +
"/" +
this.username
Expand Down

1 comment on commit 68a3f52

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 68a3f52 Sep 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

Module not found "file:///src/dist/app.js".

Please sign in to comment.