whatsapp-web-incognito
whatsapp-web-incognito copied to clipboard
Icon appears twice in status bar sometimes [Race]
On beta v2.3000.1012596890 of WhatsApp, Chrome webstore version.
I'm finding it hard to reproduce, it happens sometimes, but other times it doesn't. I can't work out what causes it to happen.
This is a problem I've seen in the past and I fixed it previously. Per your report I see it's happening again. The following code should prevent adding the icon twice: https://github.com/tomer8007/whatsapp-web-incognito/blob/4717bc88c2a7a0eea54d20707a401f5188c193ec/core/ui.js#L115 It's probably a race as I wrote here: https://github.com/tomer8007/whatsapp-web-incognito/blob/4717bc88c2a7a0eea54d20707a401f5188c193ec/core/ui.js#L111