mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
adding undefined check to hrefEmpty
This commit is contained in:
@@ -253,7 +253,7 @@ var ajaxify = ajaxify || {};
|
||||
}
|
||||
|
||||
function hrefEmpty(href) {
|
||||
return href === '' || href === 'javascript:;' || href === window.location.href + "#" || href.slice(-1) === "#";
|
||||
return href === undefined || href === '' || href === 'javascript:;' || href === window.location.href + "#" || href.slice(-1) === "#";
|
||||
}
|
||||
|
||||
// Enhancing all anchors to ajaxify...
|
||||
|
||||
Reference in New Issue
Block a user