Skip to content

Commit

Permalink
improves valid file detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ajm-asiaa committed Aug 28, 2020
1 parent 063367b commit 72bef08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ let mainWindow;
if (fs.statSync(arg1).isFile() === true) {
// console.log('DEBUG: File detected');
//double check that it is a valid filetype for CARTA
if ( arg1.includes('.fits') || arg1.includes('.hdf5') ) {
if ( arg1.endsWith('.fits') || arg1.endsWith('.hdf5') ) {
var filemode = 1
// console.log('DEBUG: File type should be OK', arg1);
if (items.remote === true) {
Expand Down

0 comments on commit 72bef08

Please sign in to comment.