From 7854d7ecc347e6325f86ac14611da8c75cea3839 Mon Sep 17 00:00:00 2001 From: nosamu <71368227+n0samu@users.noreply.github.com> Date: Sat, 18 Nov 2023 23:40:09 -0600 Subject: [PATCH] Fix file picker on Linux Accept alternate vnd.adobe.flash.movie MIME type --- source/swf-tester/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/swf-tester/index.html b/source/swf-tester/index.html index b1d203c..4e9edc7 100644 --- a/source/swf-tester/index.html +++ b/source/swf-tester/index.html @@ -273,9 +273,9 @@

AWAY LIB VERSION

* @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; }