Browse Source

Merge pull request #572 from coffeemakr/allow-json-import-for-noscript

Allow JSON files as import from Noscript
pull/2/head
Raymond Hill 9 years ago
committed by GitHub
parent
commit
cf4bb059f9
  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