mirror of https://github.com/kern/filepizza
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
322 B
JavaScript
20 lines
322 B
JavaScript
import PeerActions from '../actions/PeerActions';
|
|
import alt from '../alt';
|
|
|
|
export default alt.createStore(class PeerStore {
|
|
|
|
constructor() {
|
|
this.bindActions(PeerActions);
|
|
this.peerID = null;
|
|
}
|
|
|
|
onSetPeerID(id) {
|
|
this.peerID = id;
|
|
}
|
|
|
|
static getPeerID() {
|
|
return this.getState().peerID;
|
|
}
|
|
|
|
})
|