aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorKadinsky <kandinsky454@protonmail.ch>2018-10-13 02:13:11 +0800
committerGitHub <noreply@github.com>2018-10-13 02:13:11 +0800
commit11033c78f559de207f89e7588dc3ccf458cbbe30 (patch)
treee4e69cffcaf30b55c6de3b9e1a4f75e17840c25f /packages/website/ts
parent5c76c8586d12e7d8cabde26edaef3221f5f4f03d (diff)
parenta1a0d120be9113fa2c736c1ff8efe97b70d6d407 (diff)
downloaddexon-sol-tools-11033c78f559de207f89e7588dc3ccf458cbbe30.tar
dexon-sol-tools-11033c78f559de207f89e7588dc3ccf458cbbe30.tar.gz
dexon-sol-tools-11033c78f559de207f89e7588dc3ccf458cbbe30.tar.bz2
dexon-sol-tools-11033c78f559de207f89e7588dc3ccf458cbbe30.tar.lz
dexon-sol-tools-11033c78f559de207f89e7588dc3ccf458cbbe30.tar.xz
dexon-sol-tools-11033c78f559de207f89e7588dc3ccf458cbbe30.tar.zst
dexon-sol-tools-11033c78f559de207f89e7588dc3ccf458cbbe30.zip
Merge pull request #1132 from 0xProject/removeRollbarUMD
fix(website): replace Rollbar UMD with regular npm package
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 {