From 0aef54be6257bbceeefef73f53de19c521dbb102 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 7 Dec 2020 15:51:58 +0100 Subject: [PATCH] Clear cache with 'burn this anon drive' --- www/drive/main.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/drive/main.js b/www/drive/main.js index ea6345b02..0f2408f5b 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -54,7 +54,13 @@ define([ if (Utils.LocalStore.isLoggedIn()) { return; } Utils.LocalStore.setFSHash(''); Utils.LocalStore.clearThumbnail(); - window.location.reload(); + try { + Utils.Cache.clear(function () { + window.location.reload(); + }); + } catch (e) { + window.location.reload(); + } }); sframeChan.on('Q_DRIVE_USEROBJECT', function (data, cb) { Cryptpad.userObjectCommand(data, cb);