Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an al... #126

Closed
ziyan22 opened this issue Oct 21, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@ziyan22
Copy link

ziyan22 commented Oct 21, 2015

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.19
System: Mac OS X 10.10.5
Thrown From: spark-dev package, v0.0.31

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 /Users/ziyanhuang/Downloads/Particle Dev.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 (/Users/ziyanhuang/Downloads/Particle Dev.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:328:5)
  at [object Object].jQuery.fn.extend.domManip (/Users/ziyanhuang/Downloads/Particle Dev.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:5435:16)
  at [object Object].jQuery.fn.extend.append (/Users/ziyanhuang/Downloads/Particle Dev.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:5218:15)
  at [object Object].<anonymous> (/Users/ziyanhuang/Downloads/Particle Dev.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:5333:18)
  at jQuery.access (/Users/ziyanhuang/Downloads/Particle Dev.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:3491:8)
  at [object Object].jQuery.fn.extend.html (/Users/ziyanhuang/Downloads/Particle Dev.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:5300:10)
  at SerialMonitorView.module.exports.SerialMonitorView.appendText (/Users/ziyanhuang/Downloads/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/lib/views/serial-monitor-view.js:157:19)
  at SerialPort.<anonymous> (/Users/ziyanhuang/Downloads/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/lib/views/serial-monitor-view.js:245:26)
  at emitOne (events.js:77:13)
  at SerialPort.emit (events.js:169:7)
  at Object.module.exports.raw [as parser] (/Users/ziyanhuang/Downloads/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/node_modules/serialport/parsers.js:8:13)
  at Object.SerialPort.opts.dataCallback (/Users/ziyanhuang/Downloads/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/node_modules/serialport/serialport.js:181:12)
  at SerialPortFactory.SerialPort._emitData (/Users/ziyanhuang/Downloads/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/node_modules/serialport/serialport.js:396:20)
  at afterRead (/Users/ziyanhuang/Downloads/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/node_modules/serialport/serialport.js:372:20)
  at /Users/ziyanhuang/Downloads/Particle Dev.app/Contents/Resources/app.asar/node_modules/spark-dev/node_modules/serialport/serialport.js:388:9
  at FSReqWrap.wrapper [as oncomplete] (fs.js:576:17)

Commands

  2x -7:35.6.0 core:backspace (atom-text-editor.editor.is-focused)
     -7:30.6.0 core:save (atom-text-editor.editor.is-focused)
     -5:37.1.0 spark-dev:show-serial-monitor (atom-text-editor.editor)
     -5:36.9.0 spark-dev:append-menu (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-monokai.theme-one-dark-ui)
     -5:36.9.0 spark-dev:update-login-status (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-monokai.theme-one-dark-ui)
     -5:36.9.0 spark-dev:update-menu (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-monokai.theme-one-dark-ui)
  2x -5:36.9.0 spark-dev:append-menu (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-monokai.theme-one-dark-ui)
     -5:36.9.0 spark-dev:update-login-status (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-monokai.theme-one-dark-ui)
     -5:36.9.0 spark-dev:update-menu (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-monokai.theme-one-dark-ui)
     -5:36.9.0 spark-dev:append-menu (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-monokai.theme-one-dark-ui)
  5x -5:29.9.0 core:confirm (atom-text-editor.editor.mini.is-focused)

Config

{
  "core": {
    "themes": [
      "one-dark-ui",
      "monokai"
    ]
  }
}

Installed Packages

# User
No installed packages

# Dev
No dev packages
@suda suda added the bug label Oct 22, 2015
@suda suda self-assigned this Nov 13, 2015
@suda suda added this to the 0.0.33 milestone Apr 13, 2016
@suda suda closed this as completed in c4c67e7 Apr 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants