better back/forward navigation WIP

This commit is contained in:
zadam
2020-03-08 11:41:42 +01:00
parent 5114f3f782
commit 5f4d963580
15 changed files with 813 additions and 460 deletions

View File

@@ -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}) {