Don't ask for password when receiving a pad from the notifications

This commit is contained in:
yflory
2019-07-01 18:19:38 +02:00
parent 7a0f30488c
commit 520655856b
2 changed files with 11 additions and 1 deletions

View File

@@ -223,6 +223,11 @@ define([
sframeChan.event("EV_PAD_PASSWORD");
};
if (!val && sessionStorage.newPadPassword) {
val = sessionStorage.newPadPassword;
delete sessionStorage.newPadPassword;
}
if (val) {
password = val;
Cryptpad.getFileSize(window.location.href, password, waitFor(function (e, size) {