rollbar
Version:
Effortlessly track and debug errors in your JavaScript applications with Rollbar. This package includes advanced error tracking features and an intuitive interface to help you identify and fix issues more quickly.
16 lines (11 loc) • 589 B
JavaScript
/* global __DEFAULT_ROLLBARJS_URL__:false */
/* global _rollbarConfig:true */
var Shim = require('../shim');
var snippetCallback = require('../snippet_callback');
_rollbarConfig = _rollbarConfig || {};
_rollbarConfig.rollbarJsUrl = _rollbarConfig.rollbarJsUrl || __DEFAULT_ROLLBARJS_URL__;
_rollbarConfig.async = _rollbarConfig.async === undefined || _rollbarConfig.async;
var shim = Shim.setupShim(window, _rollbarConfig);
var callback = snippetCallback(_rollbarConfig);
window.rollbar = Shim.Rollbar;
shim.loadFull(window, document, !_rollbarConfig.async, _rollbarConfig, callback);