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

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>