feat(tray): reload bookmarks on change

This commit is contained in:
Elian Doran
2025-02-01 11:04:49 +02:00
parent 09bf48e5a4
commit ebc523a0fd
3 changed files with 15 additions and 1 deletions

View File

@@ -8,6 +8,15 @@ function reloadFrontendApp(reason?: string) {
window.location.reload();
}
function reloadTray() {
if (!isElectron()) {
return;
}
const { ipcRenderer } = dynamicRequire("electron");
ipcRenderer.send("reload-tray");
}
function parseDate(str: string) {
try {
return new Date(Date.parse(str));
@@ -602,6 +611,7 @@ function isLaunchBarConfig(noteId: string) {
export default {
reloadFrontendApp,
reloadTray,
parseDate,
formatDateISO,
formatDateTime,