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

View File

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