mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: correctly determine configurationRequired value depending on whether addon is configured
This commit is contained in:
@@ -19,7 +19,7 @@ export const getManifest = (configured: boolean): typeof manifest => {
|
||||
...manifest,
|
||||
behaviorHints: {
|
||||
...manifest.behaviorHints,
|
||||
configurationRequired: configured,
|
||||
configurationRequired: !configured,
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user