Merge pull request #194 from jmacxx/fix_issue_140

fix Issue 140: error logged to console when switching tabs.
This commit is contained in:
OutCast3k 2019-12-24 23:00:22 +00:00 committed by GitHub
commit c6f70d000e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1803,7 +1803,7 @@ $(document).ready(function() {
$('a[data-toggle="tab"]').on('click', function(e) {
e.preventDefault();
if(e.target){
if(e.target && $(e.target).attr('href')) {
history.pushState(null, null, '#'+$(e.target).attr('href').substr(1));
}
});