Add Element X iOS entries in the apple-app-site-association. (#337)

* Add Element X to the apple-app-site-association file.

* Tidy up the generated apple-app-site-association file.
This commit is contained in:
Doug
2024-05-07 11:39:56 +01:00
committed by GitHub
parent 00ccd16f19
commit 657fd9cc1a
3 changed files with 10 additions and 6 deletions
+1 -5
View File
@@ -124,10 +124,9 @@ async function buildJs(mainFile, assets, extraFiles = []) {
}
function buildAppleAssociatedAppsFile(clients) {
const appIds = clients.map(c => c.appleAssociatedAppId).filter(id => !!id);
const appIds = clients.map(c => c.appleAssociatedAppId).flat().filter(id => !!id);
return JSON.stringify({
"applinks": {
"apps": [],
"details": {
appIDs: appIds,
components: [
@@ -136,9 +135,6 @@ function buildAppleAssociatedAppsFile(clients) {
}
]
},
},
"webcredentials": {
"apps": appIds
}
});
}