From 12ebb136ba18ea6450c5e0eb151b85d97ad6761c Mon Sep 17 00:00:00 2001 From: Coffeemakr Date: Tue, 14 Jun 2016 15:06:07 +0200 Subject: [PATCH] In addition to text files allow json files for import --- src/js/user-rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/user-rules.js b/src/js/user-rules.js index 45edb9f..aea85de 100644 --- a/src/js/user-rules.js +++ b/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();