mirror of
https://github.com/janishutz/color-thief.git
synced 2025-11-25 05:44:24 +00:00
Fix with eslint
This commit is contained in:
@@ -47,7 +47,7 @@ class CanvasImage {
|
|||||||
this.width = this.canvas.width;
|
this.width = this.canvas.width;
|
||||||
this.height = this.canvas.height;
|
this.height = this.canvas.height;
|
||||||
} else {
|
} else {
|
||||||
throw new Error("One of the two constructor arguments needed");
|
throw new Error( 'One of the two constructor arguments needed' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -213,7 +213,7 @@ class ColorThief {
|
|||||||
} );
|
} );
|
||||||
sourceImage.src = imageData;
|
sourceImage.src = imageData;
|
||||||
} );
|
} );
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the dominant color of an image from an image URL promise-based. Replaces getColorFromUrl
|
* Get the dominant color of an image from an image URL promise-based. Replaces getColorFromUrl
|
||||||
@@ -238,7 +238,7 @@ class ColorThief {
|
|||||||
reject( e );
|
reject( e );
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ColorThief;
|
export default ColorThief;
|
||||||
|
|||||||
Reference in New Issue
Block a user