correctly initialize RPC object

pull/1/head
ansuz 8 years ago
parent c9c9dd0999
commit 7f2f1f7191

@ -12,7 +12,12 @@ define([
$(function () {
Cryptpad.ready(function (err, env) {
var network = Cryptpad.getNetwork();
var rpc = RPC.create(network); // TODO signing key
var proxy = Cryptpad.getStore().getProxy().proxy;
var edPrivate = proxy.edPrivate;
var edPublic = proxy.edPublic;
var rpc = RPC.create(network, edPrivate, edPublic);
var payload = {
a: Math.floor(Math.random() * 1000),

Loading…
Cancel
Save