mirror of
https://github.com/Art-Portal/April.git
synced 2024-11-16 11:37:37 +01:00
fix: None is not defined in generateRandomPalette
This commit is contained in:
parent
89ef7c11e7
commit
fbb47205ef
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user