1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-02 10:24:59 +12:00

In addition to text files allow json files for import

This commit is contained in:
Coffeemakr 2016-06-14 15:06:07 +02:00
parent 941d710247
commit 12ebb136ba

View file

@ -179,7 +179,7 @@ var handleImportFilePicker = function() {
if ( file === undefined || file.name === '' ) {
return;
}
if ( file.type.indexOf('text') !== 0 ) {
if ( file.type.indexOf('text') !== 0 && file.type !== 'application/json') {
return;
}
var fr = new FileReader();