docs: scroll fix

This commit is contained in:
bordun 2020-10-23 11:01:43 +02:00
parent 858c86a2a6
commit 664d4cec30

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