Update index.ts

This commit is contained in:
NayamAmarshe
2023-05-10 01:13:05 +05:30
committed by GitHub
parent d6815bc420
commit ef797a130e

View File

@@ -302,8 +302,8 @@ ipcMain.handle(commands.SELECT_CUSTOM_MODEL_FOLDER, async (event, message) => {
customModelsFolderPath = folderPaths[0];
if (
!folderPaths[0].endsWith("/models") &&
!folderPaths[0].endsWith("/models/")
!folderPaths[0].endsWith(slash + "models") &&
!folderPaths[0].endsWith(slash + "models" + slash)
) {
logit("❌ Invalid Custom Models Folder Detected: Not a 'models' folder");
const options: MessageBoxOptions = {