Make sure we also support jpg (#3290)

This commit is contained in:
Peter Hedenskog 2021-02-24 14:00:44 +01:00 committed by GitHub
parent b8ffc5a1fc
commit 8aa9f967c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ module.exports = {
// We can have multiple screenshots (taken by the user) and
// only use the standard one
for (let screenshot of message.data.screenshots) {
if (screenshot.indexOf('afterPageCompleteCheck.png') > -1) {
if (screenshot.indexOf('afterPageCompleteCheck') > -1) {
imagePath = screenshot;
}
}