isValidVencordInstall: don't require package.json to exist
This commit is contained in:
+1
-1
@@ -149,7 +149,7 @@ handle(IpcEvents.SELECT_VENCORD_DIR, async (_e, value?: null) => {
|
||||
if (!res.filePaths.length) return "cancelled";
|
||||
|
||||
const dir = res.filePaths[0];
|
||||
if (!isValidVencordInstall(dir)) return "invalid";
|
||||
if (!(await isValidVencordInstall(dir))) return "invalid";
|
||||
|
||||
State.store.vencordDir = dir;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user