-4
src-tauri/src/util/handle_uri_proto.rs
-4
src-tauri/src/util/handle_uri_proto.rs
···
26
26
// because tauri should only let the frontend of VRCPhotoManager read files throught this. Only
27
27
// becomes a potential issue if the frontend gets modified or there's an issue with tauri.
28
28
29
-
#[cfg(windows)]
30
29
let path = uri.path().split_at(1).1;
31
30
32
-
#[cfg(unix)]
33
-
let path = uri.path();
34
-
35
31
dbg!(path);
36
32
37
33
let file = fs::File::open(path);
+1
-1
src/Components/PhotoList.tsx
+1
-1
src/Components/PhotoList.tsx
···
168
168
this.imageEl = document.createElement('img');
169
169
this.imageEl.crossOrigin = 'anonymous';
170
170
171
-
this.imageEl.src = "photo:/" + photoPath + this.path + "?downscale";
171
+
this.imageEl.src = "photo://localhost" + photoPath + this.path + "?downscale";
172
172
173
173
this.imageEl.onload = () => {
174
174
this.image!.width = this.scaledWidth!;
+1
-1
src/Components/PhotoViewer.tsx
+1
-1
src/Components/PhotoViewer.tsx
···
262
262
if(!photoPath)
263
263
photoPath = await invoke('get_user_photos_path') + '/';
264
264
265
-
imageViewer.src = 'photo:/' + (photoPath + props.currentPhotoView().path).split('\\').join('/') + "?full";
265
+
imageViewer.src = 'photo://localhost' + (photoPath + props.currentPhotoView().path).split('\\').join('/') + "?full";
266
266
imageViewer.crossOrigin = 'anonymous';
267
267
})();
268
268