From b0c6c3a51660b6083f22eb9ed0aaf1f4144acb8b Mon Sep 17 00:00:00 2001 From: Wowee0 Date: Mon, 23 Sep 2019 21:01:03 -0500 Subject: [PATCH] fix Uncaught TypeError logged to console when switching Tx Input and Output tabs --- js/coinbin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/coinbin.js b/js/coinbin.js index 69f266d..1a47760 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -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)); } });