Fix with eslint

This commit is contained in:
2025-05-05 14:29:00 +02:00
parent a971b98eaa
commit 8e4cb217bb

View File

@@ -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;