|
|
|
@ -1,4 +1,5 @@ |
|
|
|
|
import $ from 'jquery' |
|
|
|
|
import URI from 'urijs' |
|
|
|
|
import socket from '../socket' |
|
|
|
|
|
|
|
|
|
if (window.page === 'address') { |
|
|
|
@ -7,6 +8,8 @@ if (window.page === 'address') { |
|
|
|
|
.receive('ok', resp => { console.log('Joined successfully', `addresses:${window.addressHash}`, resp) }) |
|
|
|
|
.receive('error', resp => { console.log('Unable to join', `addresses:${window.addressHash}`, resp) }) |
|
|
|
|
|
|
|
|
|
const currentLocation = URI(window.location) |
|
|
|
|
if(!currentLocation.hasQuery('block_number')) { |
|
|
|
|
const $emptyTransactionsList = $('[data-selector="empty-transactions-list"]') |
|
|
|
|
if ($emptyTransactionsList) { |
|
|
|
|
channel.on('transaction', () => { |
|
|
|
@ -21,3 +24,4 @@ if (window.page === 'address') { |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|