mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-02 10:24:59 +12:00
Merge branch 'master' of https://github.com/gorhill/uMatrix
This commit is contained in:
commit
2ef2505507
|
@ -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…
Reference in a new issue