diff --git a/addons/gst-web/src/app.js b/addons/gst-web/src/app.js index 5c6246cf..cfdfdbc9 100644 --- a/addons/gst-web/src/app.js +++ b/addons/gst-web/src/app.js @@ -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" @@ -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(); }) @@ -822,7 +822,7 @@ var checkPublishing = () => { // checkPublishing(); // Fetch RTC configuration containing STUN/TURN servers. -fetch("/turn") +fetch("./turn") .then(function (response) { return response.json(); }) diff --git a/addons/gst-web/src/index.html b/addons/gst-web/src/index.html index ef90e210..501718a0 100644 --- a/addons/gst-web/src/index.html +++ b/addons/gst-web/src/index.html @@ -242,7 +242,7 @@ diff --git a/addons/gst-web/src/signalling.js b/addons/gst-web/src/signalling.js index be5fb663..6ffca576 100644 --- a/addons/gst-web/src/signalling.js +++ b/addons/gst-web/src/signalling.js @@ -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(); }