mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
always use template strings instead of string concatenation
This commit is contained in:
@@ -126,7 +126,7 @@ export default class TabManager extends Component {
|
||||
|
||||
if (window.history.length === 0 // first history entry
|
||||
|| (activeNoteContext && activeNoteContext.notePath !== treeService.getHashValueFromAddress()[0])) {
|
||||
const url = '#' + (activeNoteContext.notePath || "") + "-" + activeNoteContext.ntxId;
|
||||
const url = `#${activeNoteContext.notePath || ""}-${activeNoteContext.ntxId}`;
|
||||
|
||||
// using pushState instead of directly modifying document.location because it does not trigger hashchange
|
||||
window.history.pushState(null, "", url);
|
||||
|
||||
Reference in New Issue
Block a user