|
|
@ -20,11 +20,6 @@ define([
|
|
|
|
Cryptpad.addLoadingScreen();
|
|
|
|
Cryptpad.addLoadingScreen();
|
|
|
|
|
|
|
|
|
|
|
|
var andThen = function () {
|
|
|
|
var andThen = function () {
|
|
|
|
$(window.document).on('decryption', function (e) {
|
|
|
|
|
|
|
|
var decrypted = e.originalEvent;
|
|
|
|
|
|
|
|
console.log(decrypted.blob, decrypted.metadata);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var $bar = $iframe.find('.toolbar-container');
|
|
|
|
var $bar = $iframe.find('.toolbar-container');
|
|
|
|
var secret = Cryptpad.getSecrets();
|
|
|
|
var secret = Cryptpad.getSecrets();
|
|
|
|
|
|
|
|
|
|
|
@ -71,11 +66,16 @@ define([
|
|
|
|
$mt.attr('data-crypto-key', 'cryptpad:'+cryptKey);
|
|
|
|
$mt.attr('data-crypto-key', 'cryptpad:'+cryptKey);
|
|
|
|
$mt.attr('data-type', type);
|
|
|
|
$mt.attr('data-type', type);
|
|
|
|
|
|
|
|
|
|
|
|
window.onMediaMetadata = function (metadata) {
|
|
|
|
$(window.document).on('decryption', function (e) {
|
|
|
|
|
|
|
|
var decrypted = e.originalEvent;
|
|
|
|
|
|
|
|
var metadata = decrypted.metadata;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(metadata);
|
|
|
|
|
|
|
|
console.log(defaultName);
|
|
|
|
if (!metadata || metadata.name !== defaultName) { return; }
|
|
|
|
if (!metadata || metadata.name !== defaultName) { return; }
|
|
|
|
var title = document.title = metadata.name;
|
|
|
|
var title = document.title = metadata.name;
|
|
|
|
updateTitle(title || defaultName);
|
|
|
|
updateTitle(title || defaultName);
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
require(['/common/media-tag.js'], function (MediaTag) {
|
|
|
|
require(['/common/media-tag.js'], function (MediaTag) {
|
|
|
|
var configTb = {
|
|
|
|
var configTb = {
|
|
|
|