Fix JavaScript error

Fixes a JavaScript error caused by the element lookup returning null
This commit is contained in:
Tom Piccirello 2018-12-07 18:41:32 -05:00 committed by GitHub
parent 6bb4eb825b
commit adcfbf0b8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,5 +149,7 @@
<script>
torrentPeersTable.setup('torrentPeersTableDiv', 'torrentPeersTableFixedHeaderDiv', null);
$(getLocalStorageItem('selected_tab', 'PropGeneralLink')).click();
var selectedTab = $(getLocalStorageItem('selected_tab', 'PropGeneralLink'));
if (selectedTab)
selectedTab.click();
</script>