Prevent reposting of javascript errors
Closes: #14359 Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
463cc03f44
commit
fa303ee292
@ -15,6 +15,10 @@ var ErrorReport = {
|
||||
* @return void
|
||||
*/
|
||||
error_handler: function (exception) {
|
||||
// issue: 14359
|
||||
if (JSON.stringify(ErrorReport._last_exception) === JSON.stringify(exception)) {
|
||||
return;
|
||||
}
|
||||
if (exception.name === null || typeof(exception.name) === 'undefined') {
|
||||
exception.name = ErrorReport._extractExceptionName(exception);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user