ref(utils): use web reportError helper (#3283)

This commit is contained in:
virtuacoplenny
2018-07-21 08:16:32 -07:00
committed by GitHub
parent 9f015df61d
commit 918fb1dfc6
4 changed files with 20 additions and 25 deletions
-13
View File
@@ -1,5 +1,3 @@
const logger = require('jitsi-meet-logger').getLogger(__filename);
/**
* Create deferred object.
*
@@ -15,14 +13,3 @@ export function createDeferred() {
return deferred;
}
/**
* Prints the error and reports it to the global error handler.
*
* @param e {Error} the error
* @param msg {string} [optional] the message printed in addition to the error
*/
export function reportError(e, msg = '') {
logger.error(msg, e);
window.onerror && window.onerror(msg, null, null, null, e);
}