Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging

pull/1/head
ansuz 7 years ago
commit 288c03bb41

@ -29,7 +29,8 @@ define(['/common/cryptpad-common.js'], function (Cryptpad) {
if (anchor) { if (anchor) {
var href = anchor.getAttribute('href'); var href = anchor.getAttribute('href');
if (href) { if (href) {
window.open(href); var bounceHref = window.location.origin + '/bounce/#' + encodeURIComponent(href);
window.open(bounceHref);
} }
} }
} }

@ -176,6 +176,7 @@ define([
sframeChan.on('Q_SEND_FRIEND_REQUEST', function (netfluxId, cb) { sframeChan.on('Q_SEND_FRIEND_REQUEST', function (netfluxId, cb) {
Cryptpad.inviteFromUserlist(Cryptpad, netfluxId); Cryptpad.inviteFromUserlist(Cryptpad, netfluxId);
cb();
}); });
Cryptpad.onFriendRequest = function (confirmText, cb) { Cryptpad.onFriendRequest = function (confirmText, cb) {
sframeChan.query('Q_INCOMING_FRIEND_REQUEST', confirmText, function (err, data) { sframeChan.query('Q_INCOMING_FRIEND_REQUEST', confirmText, function (err, data) {

Loading…
Cancel
Save