mirror of
https://github.com/upscayl/upscayl.git
synced 2025-02-14 18:02:38 +01:00
Update function
This commit is contained in:
parent
04cd625010
commit
31aa0f91e1
@ -10,10 +10,10 @@ const ImageViewer = ({
|
||||
return (
|
||||
<img
|
||||
src={"file:///" + sanitizePath(imagePath)}
|
||||
onLoad={(e: any) => {
|
||||
onLoad={(e: React.SyntheticEvent<HTMLImageElement>) => {
|
||||
setDimensions({
|
||||
width: e.target.naturalWidth,
|
||||
height: e.target.naturalHeight,
|
||||
width: e.currentTarget.naturalWidth,
|
||||
height: e.currentTarget.naturalHeight,
|
||||
});
|
||||
}}
|
||||
draggable="false"
|
||||
|
Loading…
x
Reference in New Issue
Block a user