diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-10 22:06:32 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-11 19:57:07 +0800 |
commit | 2e3624d88808ab1b6dcfe307243aaca047061e32 (patch) | |
tree | b6cfa355b9e5299c3d573bea9397e55db77079e9 /packages/website/ts/utils | |
parent | 8941b6cee5b56fab6d3b89ac8a899f21d5c86350 (diff) | |
download | dexon-sol-tools-2e3624d88808ab1b6dcfe307243aaca047061e32.tar dexon-sol-tools-2e3624d88808ab1b6dcfe307243aaca047061e32.tar.gz dexon-sol-tools-2e3624d88808ab1b6dcfe307243aaca047061e32.tar.bz2 dexon-sol-tools-2e3624d88808ab1b6dcfe307243aaca047061e32.tar.lz dexon-sol-tools-2e3624d88808ab1b6dcfe307243aaca047061e32.tar.xz dexon-sol-tools-2e3624d88808ab1b6dcfe307243aaca047061e32.tar.zst dexon-sol-tools-2e3624d88808ab1b6dcfe307243aaca047061e32.zip |
fix(website): replace Rollbar UMD with regular npm package
Diffstat (limited to 'packages/website/ts/utils')
-rw-r--r-- | packages/website/ts/utils/error_reporter.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/website/ts/utils/error_reporter.ts b/packages/website/ts/utils/error_reporter.ts index 6008fffed..bec92e829 100644 --- a/packages/website/ts/utils/error_reporter.ts +++ b/packages/website/ts/utils/error_reporter.ts @@ -1,4 +1,5 @@ import { logUtils } from '@0xproject/utils'; +import Rollbar = require('rollbar'); import { configs } from 'ts/utils/configs'; import { constants } from 'ts/utils/constants'; import { utils } from 'ts/utils/utils'; @@ -36,8 +37,8 @@ const rollbarConfig = { 'SecurityError (DOM Exception 18)', ], }; -import Rollbar = require('../../public/js/rollbar.umd.min.js'); -const rollbar = Rollbar.init(rollbarConfig); + +const rollbar = new Rollbar(rollbarConfig); export const errorReporter = { report(err: Error): void { |