Merge pull request #9976 from Piccirello/fix-js-error

Fix JavaScript error
This commit is contained in:
Mike Tzou 2018-12-09 15:56:38 +08:00 committed by GitHub
commit 0418401ddd
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>