mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 03:00:41 +01:00
fix history navigation buttons in server, #3527
This commit is contained in:
@@ -23,6 +23,10 @@ export default class HistoryNavigationButton extends ButtonFromNoteWidget {
|
||||
doRender() {
|
||||
super.doRender();
|
||||
|
||||
if (!utils.isElectron()) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.webContents = utils.dynamicRequire('@electron/remote').getCurrentWebContents();
|
||||
|
||||
// without this the history is preserved across frontend reloads
|
||||
|
||||
Reference in New Issue
Block a user