fix lint: operator '=' must be spaced
This commit is contained in:
parent
121dcfdcab
commit
926d76de07
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ function insertToHead(fullHtml, htmlToInsert) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function truncateDescription(description, maxChars=200) {
|
function truncateDescription(description, maxChars = 200) {
|
||||||
// Get list of single-codepoint strings
|
// Get list of single-codepoint strings
|
||||||
const chars = [...description];
|
const chars = [...description];
|
||||||
// Use slice array instead of substring to prevent breaking emojis
|
// Use slice array instead of substring to prevent breaking emojis
|
||||||
|
|
Loading…
Reference in a new issue