mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
better back/forward navigation WIP
This commit is contained in:
@@ -138,11 +138,17 @@ export default class Entrypoints extends Component {
|
||||
}
|
||||
|
||||
backInNoteHistoryCommand() {
|
||||
window.history.back();
|
||||
const electron = require('electron');
|
||||
const {webContents} = electron.remote.getCurrentWindow();
|
||||
|
||||
webContents.goBack();
|
||||
}
|
||||
|
||||
forwardInNoteHistoryCommand() {
|
||||
window.history.forward();
|
||||
forwardInNoteHistoryCommand() {console.log("forward");
|
||||
const electron = require('electron');
|
||||
const {webContents} = electron.remote.getCurrentWindow();
|
||||
|
||||
webContents.goForward();
|
||||
}
|
||||
|
||||
async searchForResultsCommand({searchText}) {
|
||||
|
||||
Reference in New Issue
Block a user