aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-10 05:26:05 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-10 05:26:05 +0800
commitc8bb21d12d6acb3fa76a8d3b22b1cbab3ea63ef8 (patch)
tree8a1e66563b1f91558a5c2ce978e5f6aad4017ad6 /packages/website/ts
parente817cd7d43467678f3dec7c020f8f0348bfc137b (diff)
downloaddexon-0x-contracts-c8bb21d12d6acb3fa76a8d3b22b1cbab3ea63ef8.tar
dexon-0x-contracts-c8bb21d12d6acb3fa76a8d3b22b1cbab3ea63ef8.tar.gz
dexon-0x-contracts-c8bb21d12d6acb3fa76a8d3b22b1cbab3ea63ef8.tar.bz2
dexon-0x-contracts-c8bb21d12d6acb3fa76a8d3b22b1cbab3ea63ef8.tar.lz
dexon-0x-contracts-c8bb21d12d6acb3fa76a8d3b22b1cbab3ea63ef8.tar.xz
dexon-0x-contracts-c8bb21d12d6acb3fa76a8d3b22b1cbab3ea63ef8.tar.zst
dexon-0x-contracts-c8bb21d12d6acb3fa76a8d3b22b1cbab3ea63ef8.zip
Add sourcemaps for rollbar
Diffstat (limited to 'packages/website/ts')
-rw-r--r--packages/website/ts/components/ui/simple_menu.tsx2
-rw-r--r--packages/website/ts/utils/error_reporter.ts8
2 files changed, 9 insertions, 1 deletions
diff --git a/packages/website/ts/components/ui/simple_menu.tsx b/packages/website/ts/components/ui/simple_menu.tsx
index 74b8ef6ae..dcbc6946b 100644
--- a/packages/website/ts/components/ui/simple_menu.tsx
+++ b/packages/website/ts/components/ui/simple_menu.tsx
@@ -84,5 +84,5 @@ export interface DifferentWalletSimpleMenuItemProps {
export const DifferentWalletSimpleMenuItem: React.StatelessComponent<DifferentWalletSimpleMenuItemProps> = ({
onClick,
}) => {
- return <SimpleMenuItem displayText="Use a Different Wallet..." onClick={onClick} />;
+ return <SimpleMenuItem displayText="Use Ledger Wallet..." onClick={onClick} />;
};
diff --git a/packages/website/ts/utils/error_reporter.ts b/packages/website/ts/utils/error_reporter.ts
index f875141fe..83710b81f 100644
--- a/packages/website/ts/utils/error_reporter.ts
+++ b/packages/website/ts/utils/error_reporter.ts
@@ -13,6 +13,14 @@ const rollbarConfig = {
maxItems: 500,
payload: {
environment: configs.ENVIRONMENT,
+ client: {
+ javascript: {
+ source_map_enabled: true,
+ // This is only defined in production environments.
+ code_version: process.env.GIT_SHA,
+ guess_uncaught_frames: true,
+ },
+ },
},
uncaughtErrorLevel: 'error',
hostWhiteList: [configs.DOMAIN_PRODUCTION, configs.DOMAIN_STAGING],