Ask for file type when opening file on android (workaround for #2522)

This commit is contained in:
JannisX11 2024-10-24 12:40:55 +02:00
parent 2662eff123
commit afd621a02f

View File

@ -48,7 +48,7 @@ Object.assign(Blockbench, {
let isIOS = ['iPad Simulator', 'iPhone Simulator', 'iPod Simulator', 'iPad', 'iPhone', 'iPod'].includes(navigator.platform) ||
(navigator.userAgent.includes("Mac") && "ontouchend" in document);
if (isIOS && options.extensions && options.extensions.length > 1) {
if ((isIOS || Blockbench.isTouch) && options.extensions && options.extensions.length > 1) {
let ext_options = {};
options.extensions.forEach(extension => {
ext_options[extension] = extension;