Fix stream discovery URL for Home Assistant Ingress

- Remove new URL() construction with window.location.origin
- Use simple relative path like camera-search API
- Fixes stream discovery in HA Ingress environment
- Maintains compatibility with direct Docker installations
- Version bump to 1.0.3
This commit is contained in:
eduard256
2025-11-18 13:59:54 +03:00
parent 90063c3f3a
commit ded9b507d6
3 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ import (
const (
// Version is the application version
Version = "1.0.2"
Version = "1.0.3"
// Banner is the application banner
Banner = `
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "webui",
"version": "1.0.2",
"version": "1.0.3",
"type": "module",
"description": "",
"main": "index.js",
+1 -3
View File
@@ -12,9 +12,7 @@ export class StreamDiscoveryAPI {
discover(request, callbacks) {
this.close();
const url = new URL(`${this.baseURL}api/v1/streams/discover`, window.location.origin);
fetch(url, {
fetch(`${this.baseURL}api/v1/streams/discover`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',