mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-28 19:55:53 +03:00
btc: fix issue with channel-js part 2
This commit is contained in:
parent
e3c20a2901
commit
b58fe46fdc
@ -3,7 +3,7 @@ import { store } from './store';
|
||||
|
||||
export class Subscription {
|
||||
start() {
|
||||
if (api.authTokens) {
|
||||
if (api.ship) {
|
||||
this.initializeBtcWallet();
|
||||
this.initializeCurrencyPoll();
|
||||
} else {
|
||||
@ -12,7 +12,8 @@ export class Subscription {
|
||||
}
|
||||
|
||||
initializeBtcWallet() {
|
||||
api.bind('/all', 'PUT', api.authTokens.ship, 'btc-wallet',
|
||||
console.log('initialize');
|
||||
api.bind('/all', 'PUT', api.ship, 'btc-wallet',
|
||||
this.handleEvent.bind(this),
|
||||
this.handleError.bind(this));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user