Typescript-eslint 2 (#193)

This commit is contained in:
Jaco Greeff
2019-08-31 09:25:48 +02:00
committed by GitHub
parent 52cc245c37
commit 876410cc8e
20 changed files with 137 additions and 75 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
"store": "^2.0.12"
},
"devDependencies": {
"@polkadot/util": "^1.1.1"
"@polkadot/util": "^1.2.0-beta.3"
},
"peerDependencies": {
"@polkadot/util": "*"
+2 -2
View File
@@ -5,7 +5,7 @@
import { Options } from './types';
// matches https://polkadot.js.org & https://*.polkadot.io
const isPolkadot = typeof window !== 'undefined' && window.location.host.indexOf('polkadot') !== -1;
const isPolkadot = typeof window !== 'undefined' && window.location.host.includes('polkadot');
const WSS_NODES = {
parity: {
@@ -158,7 +158,7 @@ const UITHEME_DEFAULT = isPolkadot
? 'polkadot'
: 'substrate';
const UIMODE_DEFAULT = !isPolkadot && typeof window !== 'undefined' && window.location.host.indexOf('ui-light') !== -1
const UIMODE_DEFAULT = !isPolkadot && typeof window !== 'undefined' && window.location.host.includes('ui-light')
? 'light'
: 'full';