mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
feat(tray): reload bookmarks on change
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user