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 (
|
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
@@ -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",
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user