always use template strings instead of string concatenation

This commit is contained in:
zadam
2022-12-21 15:19:05 +01:00
parent ea006993f6
commit 1b24276a4a
154 changed files with 433 additions and 437 deletions

View File

@@ -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);