Skip to content

Commit

Permalink
Add missing close bracket in imagediff (#22710) (#22712)
Browse files Browse the repository at this point in the history
Backport #22710

There was a missing `]` in imagediff.js:

```
const $range = $container.find("input[type='range'"); 
```

This PR simply adds this.

Fix #22702

Co-authored-by: zeripath <art27@cantab.net>
  • Loading branch information
yardenshoham and zeripath authored Feb 1, 2023
1 parent 263d06f commit 4c20be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/js/features/imagediff.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export default function initImageDiff() {
height: sizes.max.height * factor + 4
});

const $range = $container.find("input[type='range'");
const $range = $container.find("input[type='range']");
const onInput = () => sizes.image1.parent().css({
opacity: $range.val() / 100
});
Expand Down

0 comments on commit 4c20be7

Please sign in to comment.