Open the access modal in the secure iframe

This commit is contained in:
yflory
2020-04-07 15:24:12 +02:00
parent 19a0dafbe1
commit 2aec7c2569
6 changed files with 30 additions and 6 deletions

View File

@@ -108,6 +108,10 @@ define([
config.addCommonRpc(sframeChan);
Cryptpad.padRpc.onMetadataEvent.reg(function (data) {
sframeChan.event('EV_RT_METADATA', data);
});
sframeChan.on('EV_CACHE_PUT', function (x) {
Object.keys(x).forEach(function (k) {
localStorage['CRYPTPAD_CACHE|' + k] = x[k];