aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-10 22:06:32 +0800
committerFabio Berger <me@fabioberger.com>2018-10-10 22:06:32 +0800
commit0fd158ac64f076859c296c641bdd2027971d8ac1 (patch)
tree7711d3773172a73c28e5b98052cc51ba224f4421 /packages/website/ts
parent6c9f7839c3948e60f2987f474bb2ad6457588fa3 (diff)
downloaddexon-sol-tools-0fd158ac64f076859c296c641bdd2027971d8ac1.tar
dexon-sol-tools-0fd158ac64f076859c296c641bdd2027971d8ac1.tar.gz
dexon-sol-tools-0fd158ac64f076859c296c641bdd2027971d8ac1.tar.bz2
dexon-sol-tools-0fd158ac64f076859c296c641bdd2027971d8ac1.tar.lz
dexon-sol-tools-0fd158ac64f076859c296c641bdd2027971d8ac1.tar.xz
dexon-sol-tools-0fd158ac64f076859c296c641bdd2027971d8ac1.tar.zst
dexon-sol-tools-0fd158ac64f076859c296c641bdd2027971d8ac1.zip
Replace Rollbar UMD with regular import
Diffstat (limited to 'packages/website/ts')
-rw-r--r--packages/website/ts/utils/error_reporter.ts5
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 {