1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 22:15:38 -05:00

Try more plugin loading things

This commit is contained in:
bbedward
2025-10-09 13:51:43 -04:00
parent e1f9b9e7a4
commit ecb9675e9c
2 changed files with 14 additions and 4 deletions

View File

@@ -159,6 +159,16 @@ Singleton {
const info = {}
for (const k in manifest) info[k] = manifest[k]
let perms = manifest.permissions
if (typeof perms === "string") {
perms = perms.split(/\s*,\s*/)
}
if (!Array.isArray(perms)) {
perms = []
}
info.permissions = perms.map(p => String(p).trim())
info.manifestPath = absPath
info.pluginDirectory = dir
info.componentPath = dir + "/" + comp