File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ export class ElectronInterceptor implements Interceptor {
8787 // Inside the Electron process, load our electron-intercepting JS.
8888 const injectionResult = await debugClient . Debugger . evaluateOnCallFrame ( {
8989 expression : `require("${
90- // Inside the Electron process, load our electron-intercepting JS
91- require . resolve ( '../../overrides/js/prepend-electron.js' )
90+ // Need to escape slashes to ensure this works on Windows (where all paths have backslashes)
91+ require . resolve ( '../../overrides/js/prepend-electron.js' ) . replace ( / \\ / g , '\\\\' )
9292 } ")({
9393 newlineEncodedCertData: "${ ( await this . certData ) . replace ( / \r \n | \r | \n / g, '\\n' ) } ",
9494 spkiFingerprint: "${ generateSPKIFingerprint ( await this . certData ) } "
You can’t perform that action at this time.
0 commit comments