Browse Source

Fix JavaScript error

Fixes a JavaScript error caused by the element lookup returning null
adaptive-webui-19844
Tom Piccirello 6 years ago committed by GitHub
parent
commit
adcfbf0b8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/webui/www/private/properties_content.html

4
src/webui/www/private/properties_content.html

@ -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…
Cancel
Save