From 898c9a3f319adef579fab06b7e37f78990179dbe Mon Sep 17 00:00:00 2001 From: bordun Date: Fri, 23 Oct 2020 11:01:43 +0200 Subject: [PATCH] docs: scroll fix --- resources/docs/extra/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/docs/extra/scripts.js b/resources/docs/extra/scripts.js index 6c4e469d..c31449b7 100644 --- a/resources/docs/extra/scripts.js +++ b/resources/docs/extra/scripts.js @@ -1,6 +1,6 @@ document.addEventListener('DOMContentLoaded', ()=>{ - if (window.location.hash) { + if (window.location.hash && window.location.href.includes('properties-reference')) { // show target in tabs/details document.querySelectorAll('[id='+window.location.hash.split("#")[1]+']').forEach(function(item){ var tab = item.closest('.tabbed-content'),