We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9296dd4 commit bced976Copy full SHA for bced976
src/services/netLoader.ts
@@ -25,7 +25,12 @@ export function initializeNetLoader() {
25
// Check if this is a local file:// URL
26
if (url.startsWith('file://')) {
27
// Extract the file path from the URL
28
- const filePath = url.replace('file://', '').replace(/^\/+/, '/');
+ let filePath = url.replace('file://', '')
29
+ if (process.platform === 'win32' && filePath.startsWith('/')) {
30
+ filePath = filePath.slice(1);
31
+ } else {
32
+ filePath = filePath.replace(/^\/+/, '/');
33
+ }
34
35
// Read the file using Electron IPC
36
const data = await readLocalFile(filePath);
0 commit comments