mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-27 17:00:52 +01:00
removed faulty formathPath function
This commit is contained in:
parent
e8de2c5808
commit
cc0597a0f7
@ -582,7 +582,8 @@ const Home = () => {
|
||||
onDragOver={(e) => handleDragOver(e)}
|
||||
onDragEnter={(e) => handleDragEnter(e)}
|
||||
onDragLeave={(e) => handleDragLeave(e)}
|
||||
onPaste={(e) => handlePaste(e)}>
|
||||
onPaste={(e) => handlePaste(e)}
|
||||
>
|
||||
{progress.length > 0 &&
|
||||
upscaledImagePath.length === 0 &&
|
||||
upscaledBatchFolderPath.length === 0 &&
|
||||
@ -628,11 +629,7 @@ const Home = () => {
|
||||
<img
|
||||
src={
|
||||
"file://" +
|
||||
`${
|
||||
upscaledImagePath
|
||||
? formatPath(upscaledImagePath)
|
||||
: formatPath(imagePath)
|
||||
}`
|
||||
`${upscaledImagePath ? upscaledImagePath : imagePath}`
|
||||
}
|
||||
onLoad={(e: any) => {
|
||||
setDimensions({
|
||||
@ -664,7 +661,8 @@ const Home = () => {
|
||||
</p>
|
||||
<button
|
||||
className="bg-gradient-blue rounded-lg p-3 font-medium text-white/90 transition-colors"
|
||||
onClick={openFolderHandler}>
|
||||
onClick={openFolderHandler}
|
||||
>
|
||||
Open Upscayled Folder
|
||||
</button>
|
||||
</>
|
||||
@ -689,7 +687,7 @@ const Home = () => {
|
||||
</p>
|
||||
|
||||
<img
|
||||
src={"file:///" + formatPath(imagePath)}
|
||||
src={"file:///" + imagePath}
|
||||
alt="Original"
|
||||
onMouseMove={handleMouseMove}
|
||||
style={{
|
||||
@ -707,7 +705,7 @@ const Home = () => {
|
||||
Upscayled
|
||||
</p>
|
||||
<img
|
||||
src={"file://" + formatPath(upscaledImagePath)}
|
||||
src={"file://" + upscaledImagePath}
|
||||
alt="Upscayl"
|
||||
style={{
|
||||
objectFit: "contain",
|
||||
|
Loading…
Reference in New Issue
Block a user