From 82f3d5f852b7bd6112e9d4304c71cd29eb241f29 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 13 Dec 2016 18:59:04 +0100 Subject: [PATCH] Open the file manager of someone else --- www/file/main.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/www/file/main.js b/www/file/main.js index ab5b3b0b7..efe6a71e8 100644 --- a/www/file/main.js +++ b/www/file/main.js @@ -169,7 +169,7 @@ define([ isReady: true, _onReady: [], onReady: function (handler) { - if (isReady) { + if (appStatus.isReady) { handler(); return; } @@ -186,9 +186,6 @@ define([ } }; - var isReady = false; - - var removeSelected = function () { $iframe.find('.selected').removeClass("selected"); }; @@ -1376,6 +1373,7 @@ define([ readOnly: false, validateKey: secret.keys.validateKey || undefined, crypto: Crypto.createEncryptor(secret.keys), + //logging: true }; var rt = window.rt = module.rt = Listmap.create(listmapConfig); @@ -1383,7 +1381,7 @@ define([ var realtime = module.realtime = info.realtime; var editHash = Cryptpad.getEditHashFromKeys(info.channel, secret.keys); - if (!window.location.hash) { + if (!window.location.hash || !localStorage.FS_hash) { localStorage.FS_hash = editHash; }