mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 15:25:51 +01:00
always use template strings instead of string concatenation
This commit is contained in:
@@ -112,7 +112,7 @@ if (utils.isElectron()) {
|
||||
|
||||
if (hasText) {
|
||||
const shortenedSelection = params.selectionText.length > 15
|
||||
? (params.selectionText.substr(0, 13) + "…")
|
||||
? (`${params.selectionText.substr(0, 13)}…`)
|
||||
: params.selectionText;
|
||||
|
||||
items.push({
|
||||
|
||||
Reference in New Issue
Block a user