diff options
author | Francesco Agosti <francesco.agosti93@gmail.com> | 2018-07-11 01:26:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-11 01:26:40 +0800 |
commit | fb9e14a229575433e42b7df0dfab5b03371647ab (patch) | |
tree | 427171d39a5bb5805a587fb9e46106455abc62a4 /packages/website/ts | |
parent | e817cd7d43467678f3dec7c020f8f0348bfc137b (diff) | |
parent | 5dfed8cd00386c185f0397fda329f7ab7bc9401f (diff) | |
download | dexon-sol-tools-fb9e14a229575433e42b7df0dfab5b03371647ab.tar dexon-sol-tools-fb9e14a229575433e42b7df0dfab5b03371647ab.tar.gz dexon-sol-tools-fb9e14a229575433e42b7df0dfab5b03371647ab.tar.bz2 dexon-sol-tools-fb9e14a229575433e42b7df0dfab5b03371647ab.tar.lz dexon-sol-tools-fb9e14a229575433e42b7df0dfab5b03371647ab.tar.xz dexon-sol-tools-fb9e14a229575433e42b7df0dfab5b03371647ab.tar.zst dexon-sol-tools-fb9e14a229575433e42b7df0dfab5b03371647ab.zip |
Merge pull request #845 from 0xProject/bug/website/portal-soft-launch-fixes
Enable sourceMaps on Rollbar and fix some small issues
Diffstat (limited to 'packages/website/ts')
-rw-r--r-- | packages/website/ts/blockchain.ts | 4 | ||||
-rw-r--r-- | packages/website/ts/components/ui/simple_menu.tsx | 2 | ||||
-rw-r--r-- | packages/website/ts/utils/constants.ts | 2 | ||||
-rw-r--r-- | packages/website/ts/utils/error_reporter.ts | 10 |
4 files changed, 14 insertions, 4 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts index fde134b18..5476fcf37 100644 --- a/packages/website/ts/blockchain.ts +++ b/packages/website/ts/blockchain.ts @@ -537,7 +537,9 @@ export class Blockchain { } public destroy(): void { this._blockchainWatcher.destroy(); - this._injectedProviderObservable.unsubscribe(this._injectedProviderUpdateHandler); + if (this._injectedProviderObservable) { + this._injectedProviderObservable.unsubscribe(this._injectedProviderUpdateHandler); + } this._stopWatchingExchangeLogFillEvents(); this._stopWatchingGasPrice(); } 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/constants.ts b/packages/website/ts/utils/constants.ts index 4b3443d21..e43f541bf 100644 --- a/packages/website/ts/utils/constants.ts +++ b/packages/website/ts/utils/constants.ts @@ -33,7 +33,7 @@ export const constants = { PROVIDER_NAME_TOSHI: 'Toshi', PROVIDER_NAME_GENERIC: 'Injected Web3', PROVIDER_NAME_PUBLIC: '0x Public', - ROLLBAR_ACCESS_TOKEN: 'a6619002b51c4464928201e6ea94de65', + ROLLBAR_ACCESS_TOKEN: '32c39bfa4bb6440faedc1612a9c13d28', S3_DOC_BUCKET_ROOT: 'https://s3.amazonaws.com/doc-jsons', S3_STAGING_DOC_BUCKET_ROOT: 'https://s3.amazonaws.com/staging-doc-jsons', SUCCESS_STATUS: 200, diff --git a/packages/website/ts/utils/error_reporter.ts b/packages/website/ts/utils/error_reporter.ts index f875141fe..2d0661b25 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], @@ -28,7 +36,7 @@ const rollbarConfig = { 'SecurityError (DOM Exception 18)', ], }; -import Rollbar = require('../../public/js/rollbar.umd.nojson.min.js'); +import Rollbar = require('../../public/js/rollbar.umd.min.js'); const rollbar = Rollbar.init(rollbarConfig); export const errorReporter = { |