aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-22 05:19:26 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-22 05:19:26 +0800
commitc6ae7b8d3f720f637db2d5ec9abee14cc00fb7a7 (patch)
treea439753c002f5c2656fdacc7b59c499042063bd5 /packages/instant/src/util
parent93672c01afd19f07daa89934fc8d29caefbec2f6 (diff)
downloaddexon-sol-tools-c6ae7b8d3f720f637db2d5ec9abee14cc00fb7a7.tar
dexon-sol-tools-c6ae7b8d3f720f637db2d5ec9abee14cc00fb7a7.tar.gz
dexon-sol-tools-c6ae7b8d3f720f637db2d5ec9abee14cc00fb7a7.tar.bz2
dexon-sol-tools-c6ae7b8d3f720f637db2d5ec9abee14cc00fb7a7.tar.lz
dexon-sol-tools-c6ae7b8d3f720f637db2d5ec9abee14cc00fb7a7.tar.xz
dexon-sol-tools-c6ae7b8d3f720f637db2d5ec9abee14cc00fb7a7.tar.zst
dexon-sol-tools-c6ae7b8d3f720f637db2d5ec9abee14cc00fb7a7.zip
Host whitelist so we don't get errors from embedded site
Diffstat (limited to 'packages/instant/src/util')
-rw-r--r--packages/instant/src/util/error_reporter.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/util/error_reporter.ts b/packages/instant/src/util/error_reporter.ts
index 89c5b6bd3..c0ef3e30e 100644
--- a/packages/instant/src/util/error_reporter.ts
+++ b/packages/instant/src/util/error_reporter.ts
@@ -1,7 +1,7 @@
import { logUtils } from '@0x/utils';
import * as _ from 'lodash';
-import { INSTANT_ENVIRONMENT, ROLLBAR_CLIENT_TOKEN, ROLLBAR_ENABLED } from '../constants';
+import { EMBEDDED_DOMAINS, INSTANT_ENVIRONMENT, ROLLBAR_CLIENT_TOKEN, ROLLBAR_ENABLED } from '../constants';
// Import version of Rollbar designed for embedded components
// See https://docs.rollbar.com/docs/using-rollbarjs-inside-an-embedded-component
@@ -29,6 +29,7 @@ export const setupRollbar = (): any => {
},
},
},
+ hostWhiteList: EMBEDDED_DOMAINS,
uncaughtErrorLevel: 'error',
ignoredMessages: [
// Errors from the third-party scripts