HomePhabricator

Fix race condition in WMA tracking

Authored by MaxSem.

Description

Fix race condition in WMA tracking

The script that adds globe buttons is loaded asynchronously and is usually absent when our
code sets its event handlers. Also, while I'm at it, rename track() to doTrack() because
the former makes Firebug go bonkers.

Bug: T107327
Change-Id: If093e4d78886bc249646194c00d1f04daf32eba1
(cherry picked from commit b7ef2e130f7761cdb4fd0f7b16dfa1865b5688ed)