mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
always use template strings instead of string concatenation
This commit is contained in:
@@ -11,7 +11,7 @@ function createClassForColor(color) {
|
||||
return "";
|
||||
}
|
||||
|
||||
const className = 'color-' + normalizedColorName;
|
||||
const className = `color-${normalizedColorName}`;
|
||||
|
||||
if (!registeredClasses.has(className)) {
|
||||
$("head").append(`<style>.${className} { color: ${color} !important; }</style>`);
|
||||
|
||||
Reference in New Issue
Block a user