diff --git a/src/menu/views/ImportMenu.js b/src/menu/views/ImportMenu.js index 266e9a11..d2595653 100644 --- a/src/menu/views/ImportMenu.js +++ b/src/menu/views/ImportMenu.js @@ -18,7 +18,7 @@ const ImportMenu = MenuBuilder.extend({ // http://www.w3schools.com/jsref/prop_fileupload_accept.asp // for now we allow multiple files uploader.multiple = true; - uploader.addEventListener("change", function() { + uploader.addEventListener("change", () => { var files = uploader.files || []; return msa.u.file.importFiles(files); }); diff --git a/src/utils/file.js b/src/utils/file.js index 0bda3745..0344603f 100644 --- a/src/utils/file.js +++ b/src/utils/file.js @@ -83,8 +83,10 @@ var funs = this.msa.g.config.set("url", "userimport"); this.msa.g.trigger("url:userImport"); } else if (type === "features") { + alert("Support for reading JalView files is limited. Please open a issue on github if you run into troubles"); this.msa.seqs.addFeatures(objs); } else if (type === "newick") { + console.error("Loading Newick files is experimental. Please open a issue on github if you run into troubles"); this.msa.u.tree.loadTree(() => { return this.msa.u.tree.showTree(file); });