Move schema.json to www/static
This commit is contained in:
+1
-1
@@ -1205,7 +1205,7 @@
|
|||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
try {
|
try {
|
||||||
const r = await fetch('https://go2rtc.org/schema.json', {cache: 'no-cache'});
|
const r = await fetch('schema.json', {cache: 'no-cache'});
|
||||||
if (r.ok) setupYamlHints(await r.json());
|
if (r.ok) setupYamlHints(await r.json());
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// ignore schema load errors
|
// ignore schema load errors
|
||||||
|
|||||||
@@ -4,4 +4,5 @@ import "embed"
|
|||||||
|
|
||||||
//go:embed *.html
|
//go:embed *.html
|
||||||
//go:embed *.js
|
//go:embed *.js
|
||||||
|
//go:embed *.json
|
||||||
var Static embed.FS
|
var Static embed.FS
|
||||||
|
|||||||
Reference in New Issue
Block a user