From 42b56788f694d7d1e101fcd3e011d8617d7df573 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 12 Aug 2024 19:35:50 +0200 Subject: [PATCH] Poll the absolut path of the manifest.json file (#120) Instead of using a relative path to manifest.json use an absolut path. This makes sure that we detect that Home Assistant Core is available also on our Apps, which navigate to `/auth/authorize?...` by default. The relative path then polls the wrong location `/auth/manifest.json`. With the absolut path we make sure that the correct location is polled on our Apps as well. --- rootfs/usr/share/www/static/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/usr/share/www/static/scripts.js b/rootfs/usr/share/www/static/scripts.js index c79edc0..de00e94 100644 --- a/rootfs/usr/share/www/static/scripts.js +++ b/rootfs/usr/share/www/static/scripts.js @@ -61,7 +61,7 @@ self.fetch || }); function testAvailable() { - fetch("./manifest.json").then(function (res) { + fetch("/manifest.json").then(function (res) { if (res.ok) { location.reload(); } else {