Skip to content

Commit

Permalink
Adds all types of images suppted by FoundryVTT
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Varaksin committed May 8, 2020
1 parent 239e22d commit 5d2ac4b
Showing 1 changed file with 1 addition and 1 deletion.
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 (['png', 'jpg', 'svg'].includes(fileExtension)) {
if (CONST.IMAGE_FILE_EXTENSIONS.includes(fileExtension)) {
imagePreviewer.showPreview(path, previewPos);
}
}, ev => {
Expand Down

0 comments on commit 5d2ac4b

Please sign in to comment.