Skip to content

Commit 6bafcc7

Browse files
committed
Poll the absolut path of the manifest.json file
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.
1 parent fef5568 commit 6bafcc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rootfs/usr/share/www/static/scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ self.fetch ||
6161
});
6262

6363
function testAvailable() {
64-
fetch("./manifest.json").then(function (res) {
64+
fetch("/manifest.json").then(function (res) {
6565
if (res.ok) {
6666
location.reload();
6767
} else {

0 commit comments

Comments
 (0)