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