mirror of
https://github.com/LukeHagar/electron-vite.git
synced 2025-12-09 12:27:43 +00:00
fix: ELECTRON_RENDERER_URL is incorrect
This commit is contained in:
@@ -37,3 +37,9 @@ export function getElectronPath(): string {
|
||||
throw new Error('Electron uninstall')
|
||||
}
|
||||
}
|
||||
|
||||
export const wildcardHosts = new Set(['0.0.0.0', '::', '0000:0000:0000:0000:0000:0000:0000:0000'])
|
||||
|
||||
export function resolveHostname(optionsHost: string | boolean | undefined): string {
|
||||
return typeof optionsHost === 'string' && !wildcardHosts.has(optionsHost) ? optionsHost : 'localhost'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user