bad code, lint

This commit is contained in:
Caleb James DeLisle
2017-08-28 17:53:23 +02:00
parent 190dff1c9b
commit fe03e6ae83
2 changed files with 2 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ 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) {
var bounceHref = window.location.origin + '/bounce/#' + encodeURIComponent(href); var bounceHref = window.location.origin + '/bounce/#' + encodeURIComponent(href);
window.open(bounceHref); window.open(bounceHref);
} }
} }

View File

@@ -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) {