Browse Source

In addition to text files allow json files for import

pull/2/head
Coffeemakr 8 years ago
parent
commit
12ebb136ba
  1. 2
      src/js/user-rules.js

2
src/js/user-rules.js

@ -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();

Loading…
Cancel
Save