From 0f02d76b56cfb72cb9ccf60b4443ae7c8ffe7a6d Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 3 Jan 2018 15:08:26 +0100 Subject: [PATCH] Fix missing callback when uploading files to the drive --- www/common/cryptpad-common.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index ac81b7bc3..775c725ad 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -276,6 +276,7 @@ define([ }; common.setPadAttribute = function (attr, value, cb, href) { + cb = cb || function () {}; href = Hash.getRelativeHref(href || window.location.href); postMessage("SET_PAD_ATTRIBUTE", { href: href, @@ -297,6 +298,7 @@ define([ }); }; common.setAttribute = function (attr, value, cb) { + cb = cb || function () {}; postMessage("SET_ATTRIBUTE", { attr: attr, value: value