🧑‍💻 also search previous siblings for id

This commit is contained in:
DrMaxNix 2024-07-26 13:23:38 +02:00
parent 7fe58b5d93
commit eb22d33fb8

View File

@ -90,5 +90,9 @@ function copylink_section_id(self){
// CONTINUE SEARCHING //
// continue with previous sibling
if(self.previousElementSibling !== null) return copylink_section_id(self.previousElementSibling);
// continue with parent
return copylink_section_id(self.parentElement);
}