1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-01-31 04:03:51 +01:00

Update renderer/pages/index.tsx

Co-authored-by: NayamAmarshe <nayamamarshe@protonmail.com>
This commit is contained in:
Yevgeniy Akimenko 2023-05-02 13:07:20 -07:00 committed by GitHub
parent af613ac3a5
commit 27c6c51448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -390,8 +390,7 @@ const Home = () => {
) { ) {
alert("Please drag and drop an image"); alert("Please drag and drop an image");
} else { } else {
SetImagePath(filePath); SetImagePath(formatPath(filePath));
setFormattedImagePath(formatPath(filePath));
var dirname = filePath.match(/(.*)[\/\\]/)[1] || ""; var dirname = filePath.match(/(.*)[\/\\]/)[1] || "";
logit("📢 Setting output path: ", dirname); logit("📢 Setting output path: ", dirname);
setOutputPath(dirname); setOutputPath(dirname);