Skip to content

Commit 336c346

Browse files
committed
do not error on no options provided
1 parent 5be05ae commit 336c346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
export default function pixelmatch(img1, img2, output, width, height, options) {
2+
export default function pixelmatch(img1, img2, output, width, height, options = {}) {
33
const {
44
threshold = 0.1, // matching threshold (0 to 1); smaller is more sensitive
55
includeAA = false, // whether to skip anti-aliasing detection

0 commit comments

Comments
 (0)