(filepath: string)
| 83 | * @returns The normalized file path. |
| 84 | */ |
| 85 | export const normalizeFileProtocol = (filepath: string) => { |
| 86 | if (isWin) { |
| 87 | if (filepath.startsWith('file:///')) return filepath; |
| 88 | |
| 89 | return 'file:///' + filepath; |
| 90 | } |
| 91 | |
| 92 | return filepath; |
| 93 | }; |
| 94 | |
| 95 | /** |
| 96 | * Generates a random, Chromium-compliant page ID with "BLESS" |
no outgoing calls
no test coverage detected