mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-12-15 05:01:38 +08:00
Ask for file type when opening file on android (workaround for #2522)
This commit is contained in:
parent
2662eff123
commit
afd621a02f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user