Skip to content

Commit

Permalink
fix(Linter errors): Clean up linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaldonkey committed May 30, 2019
1 parent a68bb1c commit 9c6bb43
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
2 changes: 1 addition & 1 deletion public/web3Ready-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<title>web3Ready-demo</title>
<script src="https://unpkg.com/vue/dist/vue.min.js"></script>
<script src="https://unpkg.com/web3ready/dist/web3-ready.min.js"></script>
<script src="../dist/web3-ready.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/web3ready/dist/web3Ready-demo.css">
</head>
<body>
Expand Down
5 changes: 3 additions & 2 deletions src/components/AsyncLoading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
</template>

<script>
import Loading from './Loading'
export default {
import Loading from './Loading'
export default {
name: 'AsyncLoading',
components: {
Loading
Expand Down
9 changes: 0 additions & 9 deletions src/components/signerDialogs/WalletConnect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export default {
watch: {
provider: {
handler(provider) {
console.log('provider CHANGED at watch')
if (provider) {
this.initSession()
}
Expand Down Expand Up @@ -110,24 +109,16 @@ export default {
async initSession() {
// This will cause walletConnect to initialize a Session.
console.log('init Session @ connected:', this.provider.walletConnector.connected)
if (this.provider.walletConnector.connected) {
console.log('Found Session', this.provider)
this.provider.getNetwork()
this.provider.getDefaultAccount()
}
else {
console.log('Creating Session')
this.provider.walletConnector.createSession()
.then(this.listenSessionStatus.bind(this))
}
},
async listenSessionStatus() {
console.log('HERE listenSessionStatus()')
console.log('is connected?', this.provider.walletConnector && this.provider.walletConnector.connected)
if (this.provider.walletConnector && this.provider.walletConnector.connected) {
this.isListening = false
this.qrImage = null
Expand Down
8 changes: 2 additions & 6 deletions src/web3ProviderApi/WalletConnect.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class WalletConnect {
}

static destroy() {
console.log('CALLED DESTROY, but nothing done?')
// TODO Don't know ho to stop.
}

/* ****************** NON API METHODS ****************** */
Expand All @@ -41,8 +41,7 @@ export default class WalletConnect {
async getNetwork() {
if (!this.networkId) {
this.networkId = this.walletConnector.chainId
console.log('getNetwork()', this.networkId)
this.networkChange(this.walletConnector.chainId)
this.networkChange(this.networkId)
}
return this.networkId
}
Expand Down Expand Up @@ -114,7 +113,6 @@ export default class WalletConnect {
}

set networkId(val) {
console.log('NETWORK CHANGE')
this._networkId = val
this.networkChange(val)
}
Expand All @@ -127,7 +125,6 @@ export default class WalletConnect {
}

set account(val) {
console.log('ACCOUNT CHANGE')
this._account = val
this.accountChange(val)
}
Expand All @@ -140,7 +137,6 @@ export default class WalletConnect {
}

get image() {
console.log('URI at getImage()', this.uri)
const buffer = this.qrImage.imageSync(this.uri, { type: 'svg' })
return `data:image/svg+xml;charset=UTF-8,${buffer}`
}
Expand Down

0 comments on commit 9c6bb43

Please sign in to comment.