docs: scroll fix

This commit is contained in:
bordun 2020-10-23 11:01:43 +02:00
parent 4c9e30284f
commit 898c9a3f31

View file

@ -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'),