I throught that this code will execute every time when page is changing. I was fear it can trigger itself, because it executes a function that changes itself, but it didn't work at all (for example, if I just call removeCapsFromElement(document.querySelector("title")) I can see it's changing for a split second, but when I replace it by
document.arrive( "title", {fireOnAttributesModification: true}, pageName => removeCapsFromElement(pageName))
, it doesn't work at all. Where is my mistake?
I throught that this code will execute every time when page is changing. I was fear it can trigger itself, because it executes a function that changes itself, but it didn't work at all (for example, if I just call
removeCapsFromElement(document.querySelector("title"))I can see it's changing for a split second, but when I replace it by, it doesn't work at all. Where is my mistake?