Refactor ZenGradientGenerator class to use constructor instead of init method

This commit is contained in:
mr. M 2024-10-27 13:11:53 +01:00
parent 04183d8e13
commit 87e0859cc8
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB

View file

@ -313,7 +313,7 @@
} }
this.numberOfDots = this.panel.querySelectorAll('.zen-theme-picker-dot').length; this.numberOfDots = this.panel.querySelectorAll('.zen-theme-picker-dot').length;
if (this.numberOfDots < ZenThemePicker.MAX_DOTS) { if (this.numberOfDots < ZenThemePicker.MAX_DOTS) {
this.createDot({c:[Math.random() * 255, Math.random() * 255, Math.random() * 255]}); this.createDot({c:[255, 255, 255]}); // right in the center!
} }
} }