mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-12 08:38:10 +00:00
Merge pull request #317 from tpronk/master
ENH: some changes in support of automated testing (and one for easier committing)
This commit is contained in:
commit
f1e4e5b5b9
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
dist
|
||||
node_modules
|
9439
package-lock.json
generated
Normal file
9439
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -11,7 +11,7 @@
|
||||
"main": "src/index.js",
|
||||
"scripts": {
|
||||
"build": "npm run build:js && npm run build:css && npm run build:docs",
|
||||
"build:css": "cross-var postcss -o dist/psychojs-$npm_package_version.css src/index.css",
|
||||
"build:css": "npx cross-var postcss -o dist/psychojs-$npm_package_version.css src/index.css",
|
||||
"build:docs": "jsdoc src -r -d docs",
|
||||
"build:js": "rollup -c",
|
||||
"lint": "npm run lint:js && npm run lint:css",
|
||||
|
@ -691,6 +691,13 @@ export class PsychoJS
|
||||
window.onerror = function (message, source, lineno, colno, error)
|
||||
{
|
||||
console.error(error);
|
||||
document.body.setAttribute('data-error', JSON.stringify({
|
||||
message: message,
|
||||
source: source,
|
||||
lineno: lineno,
|
||||
colno: colno,
|
||||
error: error.stack
|
||||
}));
|
||||
self._gui.dialog({"error": error});
|
||||
return true;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user