fix: error upon opening web UI without any zygisk modules

This commit fixes the toast error that appears when opening ReZygisk's web UI.
This commit is contained in:
ThePedroo
2024-07-23 17:17:35 -03:00
parent 665ff2b8d9
commit 90de86a5c7

View File

@@ -129,6 +129,7 @@ export function setErrorData(errorLog) {
if (findModulesCmd.errno === 0) {
const modules = findModulesCmd.stdout.split('\n')
modules.pop()
if (modules.length === 0) return;