make it again possible to open notes through URL hash

This commit is contained in:
zadam
2019-07-09 22:12:05 +02:00
parent 6a99af64a8
commit 3d7a5f20e7
4 changed files with 214 additions and 204 deletions

View File

@@ -19,7 +19,10 @@ function getNoteIdFromNotePath(notePath) {
const path = notePath.split("/");
return path[path.length - 1];
const lastSegment = path[path.length - 1];
// path could have also tabId suffix
return lastSegment.split("-")[0];
}
async function getNotePath(node) {