小调整。
parent
a89aae6aaf
commit
bfdc4b8b30
|
@ -3,6 +3,9 @@ export default {
|
|||
const { ipcMain, dialog, log } = context
|
||||
ipcMain.on('file-selector', (event, message) => {
|
||||
if (message.key === 'open') {
|
||||
/**
|
||||
* @type {Electron.OpenDialogOptions}
|
||||
*/
|
||||
const options = message.options || {}
|
||||
if (options.properties == null || options.properties.length === 0) {
|
||||
options.properties = ['openFile']
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// const os = require('os')
|
||||
const log = require('packages/mitmproxy/src/utils/util.log.server')
|
||||
const log = require('./util.log.server')
|
||||
|
||||
const util = {
|
||||
getNodeVersion () {
|
||||
|
|
Loading…
Reference in New Issue