forked from Wavyzz/dolibarr
Using Raven.js allows logging client-side javascript errors to the configured Sentry server.
15 lines
329 B
JavaScript
15 lines
329 B
JavaScript
/**
|
|
* require.js plugin
|
|
*
|
|
* Automatically wrap define/require callbacks. (Experimental)
|
|
*/
|
|
;(function(window, Raven) {
|
|
'use strict';
|
|
|
|
if (typeof define === 'function' && define.amd) {
|
|
window.define = Raven.wrap({deep: false}, define);
|
|
window.require = Raven.wrap({deep: false}, require);
|
|
}
|
|
|
|
}(window, window.Raven));
|