mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-03-05 04:13:08 +08:00
16 lines
304 B
JavaScript
16 lines
304 B
JavaScript
/* eslint global-require: 0 */
|
|
'use strict';
|
|
|
|
const config = require('wild-config');
|
|
let bugsnag;
|
|
|
|
if (config.bugsnagCode) {
|
|
bugsnag = require('bugsnag');
|
|
bugsnag.register(config.bugsnagCode);
|
|
}
|
|
|
|
module.exports.notify = (...args) => {
|
|
if (bugsnag) {
|
|
bugsnag.notify(...args);
|
|
}
|
|
};
|