mirror of https://github.com/keeweb/keeweb.git
chore: conform to prettify
This commit is contained in:
parent
0f8332b07a
commit
fe23aa9097
|
@ -11,9 +11,9 @@ class RandomNameGenerator {
|
|||
function charCodeToHtml(char) {
|
||||
// convert certain special chars like space into to non-breaking space
|
||||
// ' ' to &#nbsp;
|
||||
if ( char === 32 || char === 8193 || char === 8239 )
|
||||
if ( char === 32 || char === 8193 || char === 8239 ) {
|
||||
char = 160;
|
||||
|
||||
}
|
||||
return Math.random( ) < 0.2 ? String.fromCharCode( char ) : `&#x${ char.toString( 16 ) };`;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue