Aki-108 / Tassel

a framework for my Pillowfort extensions
2 stars 0 forks source link

Reblogged to Community: Settings don't show up #11

Closed Aki-108 closed 1 year ago

Aki-108 commented 1 year ago

There is an error when loading on any page other than a post perma-link that causes the extension to stop and thus not create the settings menu in Tassel. The error occurs in the function "addEventListener" because the reblogButton is not found. The same will happen with other elements. To fix this, first check if the getElement function returned any elements, before accessing the array.