Skip to content

Commit

Permalink
Fix file picker on Linux
Browse files Browse the repository at this point in the history
Accept alternate vnd.adobe.flash.movie MIME type
  • Loading branch information
n0samu committed Nov 19, 2023
1 parent b4ca258 commit 7854d7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/swf-tester/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ <h4>AWAY LIB VERSION</h4>
* @type {File}
**/
const file = dt.files[0];
const acceptedTypes = ['', 'application/x-shockwave-flash', 'application/vnd.adobe.flash.movie'];

if(!file || file.type !== 'application/x-shockwave-flash' && file.type !== '') {

if (!(file && acceptedTypes.includes(file.type))) {
showHint('error');
return;
}
Expand Down

0 comments on commit 7854d7e

Please sign in to comment.