X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fjcalderonzumba%2Fgastonjs%2Fdocs%2Fapi%2Fcommands%2Fjavascript%2Fset_js_errors.md;fp=vendor%2Fjcalderonzumba%2Fgastonjs%2Fdocs%2Fapi%2Fcommands%2Fjavascript%2Fset_js_errors.md;h=8a3c276b0dffdad12c0d390e42b9d4a49452b17b;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/vendor/jcalderonzumba/gastonjs/docs/api/commands/javascript/set_js_errors.md b/vendor/jcalderonzumba/gastonjs/docs/api/commands/javascript/set_js_errors.md new file mode 100644 index 000000000..8a3c276b0 --- /dev/null +++ b/vendor/jcalderonzumba/gastonjs/docs/api/commands/javascript/set_js_errors.md @@ -0,0 +1,41 @@ +set_js_errors +============= +This command allows you to enable/disable javascript error control when executing commands. + +When javascript error control is enabled all commands where the page has javascript errors will fail. + +This is a good practice so you can detect any javascript errors on your pages. + + +##Enable javascript error control +####Request +```json +{ + "name": "set_js_errors", + "args": [ + true + ] +} +``` +####Response +```json +{ + "response": true +} +``` +##Disable javascript error control +####Request +```json +{ + "name": "set_js_errors", + "args": [ + false + ] +} +``` +####Response +```json +{ + "response": true +} +```