Skip to content

Commit

Permalink
Merge pull request syl3r86#4 from megastruktur/feature/add-all-suppor…
Browse files Browse the repository at this point in the history
…ted-extensions

Adds all types of images suppted by FoundryVTT
  • Loading branch information
syl3r86 authored May 8, 2020
2 parents 239e22d + 5d2ac4b commit cb06c38
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 cb06c38

Please sign in to comment.