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 ( const (
// Version is the application version // Version is the application version
Version = "1.0.2" Version = "1.0.3"
// Banner is the application banner // Banner is the application banner
Banner = ` Banner = `
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "webui", "name": "webui",
"version": "1.0.2", "version": "1.0.3",
"type": "module", "type": "module",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
+1 -3
View File
@@ -12,9 +12,7 @@ export class StreamDiscoveryAPI {
discover(request, callbacks) { discover(request, callbacks) {
this.close(); this.close();
const url = new URL(`${this.baseURL}api/v1/streams/discover`, window.location.origin); fetch(`${this.baseURL}api/v1/streams/discover`, {
fetch(url, {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',