Skip to content

Commit ec7cf4e

Browse files
committed
fix: the image shown in electron
1 parent bf69242 commit ec7cf4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ipc/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function copyImage(src: string) {
1212

1313
export function convertLocalFileSrc(src: string) {
1414
if (isElectron) {
15-
return src.replace("local-file://", "")
15+
return `local-file:///${src}`
1616
} else {
1717
return convertFileSrc(src)
1818
}

0 commit comments

Comments
 (0)