fix: None is not defined in generateRandomPalette

This commit is contained in:
Ninjdai 2023-10-02 18:22:44 +02:00
parent 89ef7c11e7
commit fbb47205ef

View File

@ -27,7 +27,7 @@ async function generateRandomPalette(forcedColor = None) {
// Générateur de couleurs harmonieuses (complémentaires)
let baseColor;
if(forcedColor == None){
if(!forcedColor){
baseColor = Math.floor(Math.random() * 16777215); // Couleur de base aléatoire
} else {
baseColor = forcedColor