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:
+1
-1
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "webui",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"type": "module",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user