bump server after paying for an account

This commit is contained in:
ansuz 2017-05-23 16:11:07 +02:00
parent 6faca87e73
commit e6c04ccb49
3 changed files with 11 additions and 6 deletions

View file

@ -42,6 +42,11 @@ define([
sig: sig sig: sig
}; };
} }
} else if (data.cmd === 'UPDATE_LIMIT') {
return Cryptpad.updatePinLimit(function (e, limit, plan, note) {
ret.res = [limit, plan, note];
srcWindow.postMessage(JSON.stringify(ret), domain);
});
} else { } else {
ret.error = "UNKNOWN_CMD"; ret.error = "UNKNOWN_CMD";
} }

View file

@ -744,17 +744,17 @@ define([
common.updatePinLimit = function (cb) { common.updatePinLimit = function (cb) {
if (!pinsReady()) { return void cb('[RPC_NOT_READY]'); } if (!pinsReady()) { return void cb('[RPC_NOT_READY]'); }
rpc.updatePinLimits(function (e, limit, plan) { rpc.updatePinLimits(function (e, limit, plan, note) {
if (e) { return cb(e); } if (e) { return cb(e); }
cb(e, limit, plan); cb(e, limit, plan, note);
}); });
}; };
common.getPinLimit = function (cb) { common.getPinLimit = function (cb) {
if (!pinsReady()) { return void cb('[RPC_NOT_READY]'); } if (!pinsReady()) { return void cb('[RPC_NOT_READY]'); }
rpc.getLimit(function (e, limit, plan) { rpc.getLimit(function (e, limit, plan, note) {
if (e) { return cb(e); } if (e) { return cb(e); }
cb(void 0, limit, plan); cb(void 0, limit, plan, note);
}); });
}; };

View file

@ -133,7 +133,7 @@ define([
rpc.send('UPDATE_LIMITS', undefined, function (e, response) { rpc.send('UPDATE_LIMITS', undefined, function (e, response) {
if (e) { return void cb(e); } if (e) { return void cb(e); }
if (response && response.length && typeof(response[0]) === "number") { if (response && response.length && typeof(response[0]) === "number") {
cb (void 0, response[0], response[1]); cb (void 0, response[0], response[1], response[2]);
} else { } else {
cb('INVALID_RESPONSE'); cb('INVALID_RESPONSE');
} }
@ -144,7 +144,7 @@ define([
rpc.send('GET_LIMIT', undefined, function (e, response) { rpc.send('GET_LIMIT', undefined, function (e, response) {
if (e) { return void cb(e); } if (e) { return void cb(e); }
if (response && response.length && typeof(response[0]) === "number") { if (response && response.length && typeof(response[0]) === "number") {
cb (void 0, response[0], response[1]); cb (void 0, response[0], response[1], response[2]);
} else { } else {
cb('INVALID_RESPONSE'); cb('INVALID_RESPONSE');
} }