|
|
@ -664,13 +664,17 @@ define([
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
var limit = Cryptpad.account.limit;
|
|
|
|
|
|
|
|
var usage = Cryptpad.account.usage;
|
|
|
|
Cryptpad.isOverPinLimit(function (e, isOver, data) {
|
|
|
|
if (typeof(limit) !== 'number' || typeof(usage) !== 'number') {
|
|
|
|
var limit = data.limit;
|
|
|
|
todo("invalid types");
|
|
|
|
var usage = data.usage;
|
|
|
|
} else if (Cryptpad.isLoggedIn() && usage >= limit) {
|
|
|
|
if (typeof(limit) !== 'number' || typeof(usage) !== 'number') {
|
|
|
|
todo(void 0, true);
|
|
|
|
todo("invalid types");
|
|
|
|
} else { todo(void 0, false); }
|
|
|
|
} else if (Cryptpad.isLoggedIn() && usage >= limit) {
|
|
|
|
|
|
|
|
todo(void 0, true);
|
|
|
|
|
|
|
|
} else { todo(void 0, false); }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
return $limit;
|
|
|
|
return $limit;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|