Fix the apple-app-site-association file. (#339)

It now matches https://developer.apple.com/documentation/bundleresources/applinks
This commit is contained in:
Doug 2024-05-09 15:46:25 +01:00 committed by GitHub
parent 657fd9cc1a
commit 6928941868
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -127,14 +127,17 @@ function buildAppleAssociatedAppsFile(clients) {
const appIds = clients.map(c => c.appleAssociatedAppId).flat().filter(id => !!id);
return JSON.stringify({
"applinks": {
"details": {
appIDs: appIds,
components: [
{
"#": "/*", // only open urls with a fragment, so you can still create links
}
]
},
"details": [
{
appIDs: appIds,
components: [
{
"#": "/*",
"comment": "Only open urls with a fragment, so you can still create links"
}
]
}
]
}
});
}