From 1e2b2a27cfc4118b55a7d85c5a6c1da188ee7fcd Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 19 Nov 2019 17:55:33 +0100 Subject: [PATCH] Fix synchronous nthen callback --- www/common/outer/sharedfolder.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/common/outer/sharedfolder.js b/www/common/outer/sharedfolder.js index b6b961428..28780065a 100644 --- a/www/common/outer/sharedfolder.js +++ b/www/common/outer/sharedfolder.js @@ -21,7 +21,8 @@ define([ // No version: visible edit // Version 2: encrypted edit links - SF.checkMigration = function (secondaryKey, proxy, uo, cb) { + SF.checkMigration = function (secondaryKey, proxy, uo, _cb) { + var cb = Util.once(Util.mkAsync(_cb)); var drive = proxy.drive || proxy; // View access: can't migrate if (!secondaryKey) { return void cb(); }