Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

Conversation

@coffeemakr
Copy link
Contributor

@coffeemakr coffeemakr commented Jun 14, 2016

After trying to reproduce the issue #552 I wasn't able to import the noscript settings too.
I saved the file as noscript.json (because it really is a json file) and tried to import it.
It didn't work and after some debugging I saw that the check

file.type.indexOf('text')

failed because the type was application/json.

The best way to handle this in my opinion would be to either allow application/json type or disable this check.
I hope you find this useful.
Regards

PS: Of course you could also tell the users to just save it as a text file :)

@gorhill gorhill merged commit cf4bb05 into gorhill:master Jun 14, 2016
@gorhill
Copy link
Owner

gorhill commented Jun 14, 2016

Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants