mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 09:45:52 +01:00
feat(mobile): add back/forward buttons to launch bar
This commit is contained in:
@@ -16,23 +16,17 @@ export default class HistoryNavigationButton extends ButtonFromNoteWidget {
|
||||
.class("launcher-button");
|
||||
}
|
||||
|
||||
isEnabled() {
|
||||
return super.isEnabled() && utils.isElectron();
|
||||
}
|
||||
|
||||
doRender() {
|
||||
super.doRender();
|
||||
|
||||
if (!utils.isElectron()) {
|
||||
return;
|
||||
if (utils.isElectron()) {
|
||||
this.webContents = utils.dynamicRequire('@electron/remote').getCurrentWebContents();
|
||||
|
||||
// without this, the history is preserved across frontend reloads
|
||||
this.webContents.clearHistory();
|
||||
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
this.webContents = utils.dynamicRequire('@electron/remote').getCurrentWebContents();
|
||||
|
||||
// without this, the history is preserved across frontend reloads
|
||||
this.webContents.clearHistory();
|
||||
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
async showContextMenu(e) {
|
||||
|
||||
Reference in New Issue
Block a user