jshint compliance

pull/1/head
ansuz 8 years ago
parent 8167ed9048
commit 94417d9a8b

@ -338,9 +338,9 @@ define([
*/ */
var migrateRecentPads = common.migrateRecentPads = function (pads) { var migrateRecentPads = common.migrateRecentPads = function (pads) {
return pads.map(function (pad) { return pads.map(function (pad) {
var hash;
if (isArray(pad)) { if (isArray(pad)) {
var href = pad[0]; var href = pad[0];
var hash;
href.replace(/\#(.*)$/, function (a, h) { href.replace(/\#(.*)$/, function (a, h) {
hash = h; hash = h;
}); });
@ -361,7 +361,7 @@ define([
if (/^https*:\/\//.test(pad.href)) { if (/^https*:\/\//.test(pad.href)) {
pad.href = common.getRelativeHref(pad.href); pad.href = common.getRelativeHref(pad.href);
} }
var hash = pad.href.slice(pad.href.indexOf('#')+1); hash = pad.href.slice(pad.href.indexOf('#')+1);
if (!hash || !common.parseHash(hash)) { return; } if (!hash || !common.parseHash(hash)) { return; }
return pad; return pad;
} else { } else {
@ -1192,7 +1192,7 @@ define([
var $userAdmin = createDropdown(dropdownConfigUser); var $userAdmin = createDropdown(dropdownConfigUser);
$userAdmin.find('a.logout').click(function (e) { $userAdmin.find('a.logout').click(function (e) {
Cryptpad.logout(); common.logout();
window.location.href = '/'; window.location.href = '/';
}); });
$userAdmin.find('a.settings').click(function (e) { $userAdmin.find('a.settings').click(function (e) {

Loading…
Cancel
Save