fix: npm run start bug when extensions not exist

This commit is contained in:
windingwind 2023-07-19 23:26:43 +08:00
parent efd56c94e1
commit 11134e365e

View File

@ -36,6 +36,12 @@ if (existsSync(profilePath)) {
writeAddonProxyFile();
}
} else {
if (
existsSync(profilePath) &&
!existsSync(path.join(profilePath, "extensions"))
) {
mkdirSync(path.join(profilePath, "extensions"));
}
writeAddonProxyFile();
}