note window opening

This commit is contained in:
nicwands
2026-02-23 11:42:22 -05:00
parent c436488f9d
commit 660b0825c5
18 changed files with 9687 additions and 9232 deletions

View File

@@ -1,7 +1,11 @@
"use strict";
const electron = require("electron");
const preload = require("@electron-toolkit/preload");
const api = {};
const api = {
openNoteWindow: (noteId) => {
electron.ipcRenderer.send("open-note-window", noteId);
}
};
if (process.contextIsolated) {
try {
electron.contextBridge.exposeInMainWorld("electron", preload.electronAPI);