Skip to content

Commit

Permalink
Fix issues with relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
ehfd authored Sep 21, 2024
1 parent c34f0b4 commit 5d6b8c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions addons/gst-web/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ var app = new Vue({
}
console.log("Publishing new image", data);

fetch("/publish/" + app.appName, {
fetch("./publish/" + app.appName, {
method: "POST",
headers: {
"content-type": "application/json"
Expand Down Expand Up @@ -802,7 +802,7 @@ if (navigator.permissions) {

// Check if editing is allowed.
var checkPublishing = () => {
fetch("/publish/" + app.appName)
fetch("./publish/" + app.appName)
.then((response) => {
return response.json();
})
Expand All @@ -822,7 +822,7 @@ var checkPublishing = () => {
// checkPublishing();

// Fetch RTC configuration containing STUN/TURN servers.
fetch("/turn")
fetch("./turn")
.then(function (response) {
return response.json();
})
Expand Down
2 changes: 1 addition & 1 deletion addons/gst-web/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@

<v-tooltip bottom>
<template v-slot:activator="{ on }">
<v-btn icon href="/">
<v-btn icon href="./">
<v-icon color="black" v-on="on">home</v-icon>
</v-btn>
</template>
Expand Down
2 changes: 1 addition & 1 deletion addons/gst-web/src/signalling.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class WebRTCDemoSignalling {
if (this._ws_conn.readyState === this._ws_conn.CLOSED) {
setTimeout(() => {
if (this.retry_count > 3) {
window.location.replace(window.location.href.replace(window.location.pathname, "/"));
window.location.reload();
} else {
this.connect();
}
Expand Down

0 comments on commit 5d6b8c5

Please sign in to comment.