diff --git a/image-previewer.js b/image-previewer.js index 7967573..f0920fb 100644 --- a/image-previewer.js +++ b/image-previewer.js @@ -50,7 +50,7 @@ Hooks.on('renderFilePicker', (app, html, data) => { // get the proper image path let path = ev.target.dataset.path; let fileExtension = path.split('.')[path.split('.').length - 1].toLowerCase(); - if (CONST.IMAGE_FILE_EXTENSIONS.includes(fileExtension)) { + if (fileExtension in CONST.IMAGE_FILE_EXTENSIONS) { imagePreviewer.showPreview(path, previewPos); } }, ev => { diff --git a/module.json b/module.json index 0dd62f3..bd0eab3 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "name": "image-previewer", "title": "Image Previewer", "description": "A little app to preview images on hover in the file picker menu.", - "version": "0.7", + "version": "0.8", "author": "Felix#6196", "scripts": ["./image-previewer.js"], "styles": ["./image-previewer.css"], @@ -10,6 +10,6 @@ "url": "https://github.com/syl3r86/image-previewer", "manifest": "https://raw.githubusercontent.com/syl3r86/image-previewer/master/module.json", "download": "https://github.com/syl3r86/image-previewer/archive/master.zip", - "minimumCoreVersion": "0.5.5", - "compatibleCoreVersion": "0.5.5" + "minimumCoreVersion": "9", + "compatibleCoreVersion": "9" }