diff --git a/ui/media/js/dnd.js b/ui/media/js/dnd.js index c2c7a93a..c9ea4891 100644 --- a/ui/media/js/dnd.js +++ b/ui/media/js/dnd.js @@ -363,7 +363,7 @@ function readUI() { } function getModelPath(filename, extensions) { - if (filename.includes('/models/stable-diffusion/')) { + if (filename.includes('/models/stable-diffusion/') || filename.includes('\\models\\stable-diffusion\\')) { let pathIdx = filename.lastIndexOf('/') // Linux, Mac paths if (pathIdx < 0) { pathIdx = filename.lastIndexOf('\\') // Windows paths.