Skip to content

Commit

Permalink
Update for Foundry V9
Browse files Browse the repository at this point in the history
  • Loading branch information
crnormand committed Jan 11, 2022
1 parent 7909710 commit 2d9e15c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion image-previewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
6 changes: 3 additions & 3 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"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"],
"packs": [],
"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"
}

0 comments on commit 2d9e15c

Please sign in to comment.