mirror of
https://github.com/jung-geun/NFD2NFC.git
synced 2025-12-20 04:20:45 +09:00
Electron 애플리케이션 초기 설정: 메인 프로세스 및 프리로드 스크립트 추가, HTML 인터페이스 구현, 디렉토리 선택 및 감시 기능 추가
This commit is contained in:
6
preload.js
Normal file
6
preload.js
Normal file
@@ -0,0 +1,6 @@
|
||||
// preload.js
|
||||
const { contextBridge, ipcRenderer } = require("electron");
|
||||
|
||||
contextBridge.exposeInMainWorld("electronAPI", {
|
||||
selectDirectory: () => ipcRenderer.invoke("select-directory"),
|
||||
});
|
||||
Reference in New Issue
Block a user