We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 443660e commit f2125d0Copy full SHA for f2125d0
lib/createProtocol.js
@@ -3,8 +3,8 @@ import * as path from 'path'
3
import { readFile } from 'fs'
4
import { URL } from 'url'
5
6
-export default (scheme) => {
7
- protocol.registerBufferProtocol(
+export default (scheme, customProtocol) => {
+ (customProtocol || protocol).registerBufferProtocol(
8
scheme,
9
(request, respond) => {
10
let pathName = new URL(request.url).pathname
lib/index.d.ts
@@ -1,2 +1,4 @@
1
-export function createProtocol(scheme: string): void
+import { Protocol } from 'electron'
2
+
+export function createProtocol(scheme: string, customProtocol?: Protocol): void
export function installVueDevtools(forceDownload?: boolean): Promise<string>
0 commit comments