mirror of
https://github.com/zadam/trilium.git
synced 2024-09-21 16:16:04 +08:00
fix broken history navigation
This commit is contained in:
parent
983d9c4319
commit
15eaf67189
|
@ -792,8 +792,9 @@ utils.bindShortcut('ctrl+.', scrollToActiveNote);
|
|||
$(window).bind('hashchange', async function() {
|
||||
if (isNotePathInAddress()) {
|
||||
const notePath = getHashValueFromAddress();
|
||||
const noteId = notePath.split("/").pop();
|
||||
|
||||
if (notePath !== '-' && await getActiveNotePath() !== notePath) {
|
||||
if (noteId !== '-' && noteId !== getActiveNode().data.noteId) {
|
||||
console.debug("Switching to " + notePath + " because of hash change");
|
||||
|
||||
activateNote(notePath);
|
||||
|
|
Loading…
Reference in a new issue