diff --git a/www/pad/links.js b/www/pad/links.js index fa7861659..4a2fc57d8 100644 --- a/www/pad/links.js +++ b/www/pad/links.js @@ -29,7 +29,7 @@ define(['/common/cryptpad-common.js'], function (Cryptpad) { if (anchor) { var href = anchor.getAttribute('href'); if (href) { - var bounceHref = window.location.origin + '/bounce/#' + encodeURIComponent(href); + var bounceHref = window.location.origin + '/bounce/#' + encodeURIComponent(href); window.open(bounceHref); } } diff --git a/www/pad/main.js b/www/pad/main.js index 2225f191d..fdf4c970e 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -176,6 +176,7 @@ define([ sframeChan.on('Q_SEND_FRIEND_REQUEST', function (netfluxId, cb) { Cryptpad.inviteFromUserlist(Cryptpad, netfluxId); + cb(); }); Cryptpad.onFriendRequest = function (confirmText, cb) { sframeChan.query('Q_INCOMING_FRIEND_REQUEST', confirmText, function (err, data) {