You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
looksSame throws an error when an error is present, using the readme code
looksSame('image1.png', 'image2.png', function(error, {equal}) {
// equal will be true, if images looks the same
});
> TypeError: Cannot destructure property `equal` of 'undefined' or 'null'.
Should probably update the docs to set the default in the callback i.e.
looksSame('image1.png', 'image2.png', function(error, {equal} = {}) {
// equal will be true, if images looks the same
});
The text was updated successfully, but these errors were encountered:
looksSame
throws an error when an error is present, using the readme codeShould probably update the docs to set the default in the callback i.e.
The text was updated successfully, but these errors were encountered: