mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 21:39:58 +02:00
Refactor ZenGradientGenerator class to use constructor instead of init method
This commit is contained in:
parent
04183d8e13
commit
87e0859cc8
1 changed files with 1 additions and 1 deletions
|
@ -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!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue