Merge branch 'vojta001/short-operator' into 'master'
Use short operator for better readability. See merge request patek-devs/patek-logo-custom-element!1
This commit is contained in:
commit
e8f57b57ed
@ -17,7 +17,7 @@ class PatekLogo extends HTMLElement {
|
|||||||
|
|
||||||
let outputChar = String.fromCharCode(0);
|
let outputChar = String.fromCharCode(0);
|
||||||
for (let i = 0; i < normalizedInputValue.length; i++) {
|
for (let i = 0; i < normalizedInputValue.length; i++) {
|
||||||
outputChar = outputChar ^ normalizedInputValue[i].charCodeAt(0);
|
outputChar ^= normalizedInputValue[i].charCodeAt(0);
|
||||||
}
|
}
|
||||||
const opacities = outputChar.toString(2);
|
const opacities = outputChar.toString(2);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user