on-internet
← Community

Electron; fetch() returns index.html when URI contains %23 (#)

Stack Overflow ·

I have a library that loads a series of audio samples, "FF C3.ogg", "FF C#3.ogg", etc. Every file loads fine except for the ones containing a pound sign which instead receives the contents of "index.html". Reproducing in a new project created with @electron-quickstart: // main/index.ts // Unchanged except to strip out some extraneous code import { app, shell, BrowserWindow, ipcMain } from 'electron' import { join } from 'path' import { electronApp, optimizer, is } from '@electron-toolkit/utils' function createWindow(): void { // Create the browser window. const mainWindow = new BrowserWindow({

Comments

Sign in or sign up to comment and upvote.

No comments yet.