From 2e10901f8af465d4a61dd63ab69300ca4c4df102 Mon Sep 17 00:00:00 2001 From: sunny Date: Sun, 29 Oct 2023 12:28:47 +0800 Subject: [PATCH] =?UTF-8?q?:fire:=20=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/samples/node-api.ts | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 src/samples/node-api.ts diff --git a/src/samples/node-api.ts b/src/samples/node-api.ts deleted file mode 100644 index f7a4d4d..0000000 --- a/src/samples/node-api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { lstat } from 'node:fs/promises' -import { cwd } from 'node:process' -import { ipcRenderer } from 'electron' - -ipcRenderer.on('main-process-message', (_event, ...args) => { - console.log('[Receive Main-process message]:', ...args) -}) - -lstat(cwd()).then(stats => { - console.log('[fs.lstat]', stats) -}).catch(err => { - console.error(err) -})