|
|
@ -1,4 +1,5 @@ |
|
|
|
import $ from 'jquery' |
|
|
|
import $ from 'jquery' |
|
|
|
|
|
|
|
import URI from 'urijs' |
|
|
|
import socket from '../socket' |
|
|
|
import socket from '../socket' |
|
|
|
|
|
|
|
|
|
|
|
if (window.page === 'address') { |
|
|
|
if (window.page === 'address') { |
|
|
@ -7,6 +8,8 @@ if (window.page === 'address') { |
|
|
|
.receive('ok', resp => { console.log('Joined successfully', `addresses:${window.addressHash}`, resp) }) |
|
|
|
.receive('ok', resp => { console.log('Joined successfully', `addresses:${window.addressHash}`, resp) }) |
|
|
|
.receive('error', resp => { console.log('Unable to join', `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"]') |
|
|
|
const $emptyTransactionsList = $('[data-selector="empty-transactions-list"]') |
|
|
|
if ($emptyTransactionsList) { |
|
|
|
if ($emptyTransactionsList) { |
|
|
|
channel.on('transaction', () => { |
|
|
|
channel.on('transaction', () => { |
|
|
@ -20,4 +23,5 @@ if (window.page === 'address') { |
|
|
|
$transactionsList.prepend(msg.transaction) |
|
|
|
$transactionsList.prepend(msg.transaction) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|