fix: prettify linting

rage inducing
This commit is contained in:
Aetherinox 2024-04-07 12:44:46 -07:00
parent fe23aa9097
commit ab9b5a9d68
No known key found for this signature in database
GPG Key ID: CB5C4C30CD0D4028
1 changed files with 2 additions and 3 deletions

View File

@ -7,14 +7,13 @@ class RandomNameGenerator {
}
}
// activated when user presses 'reveal' on password
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 ) };`;
return Math.random() < 0.2 ? String.fromCharCode(char) : `&#x${char.toString(16)};`;
}
const PasswordPresenter = {