Skip to content

Commit

Permalink
Poll the absolut path of the manifest.json file
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
agners committed Aug 12, 2024
1 parent fef5568 commit 6bafcc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/usr/share/www/static/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6bafcc7

Please sign in to comment.