Use different algorithm for dynamic themes on manga page
This commit is contained in:
@@ -189,7 +189,7 @@ const Thumbnail = ({
|
|||||||
img.onload = () => {
|
img.onload = () => {
|
||||||
Promise.all([
|
Promise.all([
|
||||||
Vibrant.from(img).getPalette(),
|
Vibrant.from(img).getPalette(),
|
||||||
new FastAverageColor().getColorAsync(img, { algorithm: 'sqrt' }),
|
new FastAverageColor().getColorAsync(img, { algorithm: 'dominant' }),
|
||||||
]).then(([palette, averageColor]) => {
|
]).then(([palette, averageColor]) => {
|
||||||
if (
|
if (
|
||||||
!palette.Vibrant ||
|
!palette.Vibrant ||
|
||||||
|
|||||||
Reference in New Issue
Block a user