UI hide Devices sections work #612

This commit is contained in:
Jokob-sk
2024-04-01 12:26:28 +11:00
parent a672070ff0
commit af8c053ded
5 changed files with 49 additions and 13 deletions

View File

@@ -1008,7 +1008,7 @@ function setupSmoothScrolling() {
var url = window.location.href;
if (url.includes("#")) {
var idFromURL = url.substring(url.indexOf("#") + 1);
if ($("#" + idFromURL).length > 0) {
if (idFromURL != "" && $("#" + idFromURL).length > 0) {
scrollToElement(idFromURL);
}
}