mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 11:56:36 +08:00
commit
410c8b98ae
@ -1,5 +1,5 @@
|
||||
|
||||
import fs from 'fs'
|
||||
import { lstat } from 'fs'
|
||||
import { cwd } from 'process'
|
||||
import { ipcRenderer } from 'electron'
|
||||
|
||||
// Usage of ipcRenderer.on
|
||||
@ -7,7 +7,7 @@ ipcRenderer.on('main-process-message', (_event, ...args) => {
|
||||
console.log('[Receive Main-process message]:', ...args)
|
||||
})
|
||||
|
||||
fs.lstat(process.cwd(), (err, stats) => {
|
||||
lstat(cwd(), (err, stats) => {
|
||||
if (err) {
|
||||
console.log(err)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user