sandoche / Darkmode.js

🌓 Add a dark-mode / night-mode to your website in a few seconds
https://darkmodejs.learn.uno
MIT License
2.73k stars 175 forks source link

Simplify boolean expressions #9

Closed maacpiash closed 5 years ago

maacpiash commented 5 years ago

Prior to this change, the conditional Boolean values were being set using the ternary operator.

This change removes ternary operators and uses logical operators to simplify the evaluation.

maacpiash commented 5 years ago

@sandoche, what are we going to do about this PR? 🤷‍♂

sandoche commented 5 years ago

Hi @maacpiash, just need to test it before merging ! I'll do it this week!