pull/1/head
yflory 8 years ago
parent c0e2c1060e
commit 3a36040ba7

@ -8,10 +8,8 @@ define([
'/common/notify.js', '/common/notify.js',
'/file/file-crypto.js', '/file/file-crypto.js',
'/bower_components/tweetnacl/nacl-fast.min.js', '/bower_components/tweetnacl/nacl-fast.min.js',
'/bower_components/file-saver/FileSaver.min.js',
], function ($, Crypto, realtimeInput, Toolbar, Cryptpad, Visible, Notify, FileCrypto) { ], function ($, Crypto, realtimeInput, Toolbar, Cryptpad, Visible, Notify, FileCrypto) {
var Messages = Cryptpad.Messages; var Messages = Cryptpad.Messages;
var saveAs = window.saveAs;
var Nacl = window.nacl; var Nacl = window.nacl;
var APP = {}; var APP = {};
@ -37,9 +35,6 @@ define([
var Title; var Title;
var myFile;
var myDataType;
var uploadMode = false; var uploadMode = false;
var $bar = $iframe.find('.toolbar-container'); var $bar = $iframe.find('.toolbar-container');
@ -162,7 +157,6 @@ define([
var decrypting = false; var decrypting = false;
var onClick = function (ev) { var onClick = function (ev) {
if (decrypting) { return; } if (decrypting) { return; }
if (myFile) { return void exportFile(); }
decrypting = true; decrypting = true;
displayFile(ev); displayFile(ev);
}; };

Loading…
Cancel
Save