Unverified Commit c9186043 authored by 偏右's avatar 偏右 Committed by GitHub

Make rollbar variable optional

parent 3f0c6e45
import Rollbar from 'rollbar';
// Track error by rollbar.com // Track error by rollbar.com
if (location.host === 'preview.pro.ant.design') { if (location.host === 'preview.pro.ant.design') {
const Rollbar = require('rollbar').default;
Rollbar.init({ Rollbar.init({
accessToken: '033ca6d7c0eb4cc1831cf470c2649971', accessToken: '033ca6d7c0eb4cc1831cf470c2649971',
captureUncaught: true, captureUncaught: true,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment