Closed NivedhaSenthil closed 6 years ago
This is likely because you get the targetcreated before the page has finished loading. So the title tag has not been read yet.
Thanks for the quick response, doing getTargets()
after page load gives right title always.
Just curious, shouldn't the value of title
be empty instead of url
if the title tag is not ready at a moment ?
The targetInfo that we get on targetCreated or targetInfoChanged event has two fields url and title with same value most of the times but sometimes it is actually the page title. Shouldn't the title be title of the target inspite of url all the time ?
Sample targetInfo received with 'url' and 'title' having same value,