danielgtaylor / danielgtaylor/atom-api-blueprint-preview
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an al...
- Dominant language
- CoffeeScript
- Stars
- 44
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
**Steps**
Previewed a valid *.apib file.
**Atom Version**: 1.0.3
**System**: Mac OS X 10.10.4
**Thrown From**: [api-blueprint-preview](https://github.com/danielgtaylor/atom-api-blueprint-preview) package, v0.5.1
### Stack Trace
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
```
At /opt/homebrew-cask/Caskroom/atom/1.0.3/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:328
EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
at eval (native)
at Function.jQuery.extend.globalEval (/opt/homebrew-cask/Caskroom/atom/1.0.3/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:328:5)
at ApiBlueprintPreviewView.jQuery.fn.extend.domManip (/opt/homebrew-cask/Caskroom/atom/1.0.3/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:5435:16)
at ApiBlueprintPreviewView.jQuery.fn.extend.append (/opt/homebrew-cask/Caskroom/atom/1.0.3/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:5218:15)
at ApiBlueprintPreviewView. (/opt/homebrew-cask/Caskroom/atom/1.0.3/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:5333:18)
at jQuery.access (/opt/homebrew-cask/Caskroom/atom/1.0.3/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:3491:8)
at ApiBlueprintPreviewView.jQuery.fn.extend.html (/opt/homebrew-cask/Caskroom/atom/1.0.3/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:5300:10)
at /Users/username/.atom/packages/api-blueprint-preview/lib/api-blueprint-preview-view.coffee:279:19
at /Users/username/.atom/packages/api-blueprint-preview/lib/renderer.coffee:32:14
at /Users/username/.atom/packages/api-blueprint-preview/lib/renderer.coffee:64:16
```
### Commands
```
n/a
```
### Config
``` json
{
"core": {},
"api-blueprint-preview": {}
}
```
### Installed Packages
``` coffee
# User
api-blueprint-preview, v0.5.1
language-api-blueprint, v1.0.2
linter, v1.3.0
linter-eslint, v3.0.2
pigments, v0.9.3
# Dev
No dev packages
```
Contributor guide
Assessment
This issue has not been assessed yet.