feat(tray): open today's journal note

This commit is contained in:
Elian Doran
2025-02-01 02:18:10 +02:00
parent 4b1cbca76d
commit 84edf0348f
2 changed files with 12 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ if (utils.isElectron()) {
function initOnElectron() {
const electron: typeof Electron = utils.dynamicRequire("electron");
electron.ipcRenderer.on("globalShortcut", async (event, actionName) => appContext.triggerCommand(actionName));
electron.ipcRenderer.on("openInSameTab", async (event, noteId) => appContext.tabManager.openInSameTab(noteId));
const electronRemote: typeof ElectronRemote = utils.dynamicRequire("@electron/remote");
const currentWindow = electronRemote.getCurrentWindow();
const style = window.getComputedStyle(document.body);