Add limit warning in pad2

This commit is contained in:
yflory
2017-08-21 12:24:33 +02:00
parent 30aef71603
commit 140c6f3776
6 changed files with 24 additions and 2 deletions

View File

@@ -118,6 +118,16 @@ define([
cb();
});
sframeChan.on('Q_GET_PIN_LIMIT_STATUS', function (data, cb) {
Cryptpad.isOverPinLimit(function (e, overLimit, limits) {
cb({
error: e,
overLimit: overLimit,
limits: limits
});
});
});
CpNfOuter.start({
sframeChan: sframeChan,
channel: secret.channel,