mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 11:38:50 -07:00
Fix JavaScript error
Fixes a JavaScript error caused by the element lookup returning null
This commit is contained in:
parent
6bb4eb825b
commit
adcfbf0b8c
1 changed files with 3 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue