feat: add options to webContents.loadFile (#14515)
This commit is contained in:
parent
7a766e82f9
commit
58577bd431
8 changed files with 31 additions and 29 deletions
|
@ -64,12 +64,7 @@ describe('crashReporter module', () => {
|
|||
|
||||
stopServer = startServer({
|
||||
callback (port) {
|
||||
const crashUrl = url.format({
|
||||
protocol: 'file',
|
||||
pathname: path.join(fixtures, 'api', 'crash.html'),
|
||||
search: '?port=' + port
|
||||
})
|
||||
w.loadURL(crashUrl)
|
||||
w.loadFile(path.join(fixtures, 'api', 'crash.html'), {query: {port}})
|
||||
},
|
||||
processType: 'renderer',
|
||||
done: done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue