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
|
@ -8,7 +8,6 @@ const {Coverage} = require('electabul')
|
|||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const url = require('url')
|
||||
const util = require('util')
|
||||
const v8 = require('v8')
|
||||
|
||||
|
@ -139,14 +138,12 @@ app.on('ready', function () {
|
|||
backgroundThrottling: false
|
||||
}
|
||||
})
|
||||
window.loadURL(url.format({
|
||||
pathname: path.join(__dirname, '/index.html'),
|
||||
protocol: 'file',
|
||||
window.loadFile('static/index.html', {
|
||||
query: {
|
||||
grep: argv.grep,
|
||||
invert: argv.invert ? 'true' : ''
|
||||
}
|
||||
}))
|
||||
})
|
||||
window.on('unresponsive', function () {
|
||||
var chosen = dialog.showMessageBox(window, {
|
||||
type: 'warning',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue