forked from Wavyzz/dolibarr
New Added client-side Sentry logging
Using Raven.js allows logging client-side javascript errors to the configured Sentry server.
This commit is contained in:
14
htdocs/includes/raven-js/plugins/require.js
Normal file
14
htdocs/includes/raven-js/plugins/require.js
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* 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));
|
||||
Reference in New Issue
Block a user