mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
fix lint
This commit is contained in:
@@ -369,7 +369,7 @@ $(document).ready(function () {
|
|||||||
var safeUrls = config.outgoingLinksWhitelist.trim().split(/[\s,]+/g);
|
var safeUrls = config.outgoingLinksWhitelist.trim().split(/[\s,]+/g);
|
||||||
var href = this.href;
|
var href = this.href;
|
||||||
|
|
||||||
if (!safeUrls.some(function(url) { return href.indexOf(url) !== -1; } )) {
|
if (!safeUrls.some(function (url) { return href.indexOf(url) !== -1; })) {
|
||||||
ajaxify.go('outgoing?url=' + encodeURIComponent(href));
|
ajaxify.go('outgoing?url=' + encodeURIComponent(href));
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user