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 sledgehammer999
parent b47f38675e
commit 1e486ea92e
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

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>