fix: correctly determine configurationRequired value depending on whether addon is configured

This commit is contained in:
Viren070
2024-12-27 14:31:14 +00:00
parent 6a204902ea
commit c3c421e857
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export const getManifest = (configured: boolean): typeof manifest => {
...manifest,
behaviorHints: {
...manifest.behaviorHints,
configurationRequired: configured,
configurationRequired: !configured,
},
};
};
+2 -2
View File
@@ -57,9 +57,9 @@ export default {
// handle /manifest.json and /:config/manifest.json requests
if (components.includes('manifest.json')) {
if (components.length === 1) {
return createJsonResponse(getManifest(true));
} else {
return createJsonResponse(getManifest(false));
} else {
return createJsonResponse(getManifest(true));
}
}