whatsapp-web-incognito icon indicating copy to clipboard operation
whatsapp-web-incognito copied to clipboard

Icon appears twice in status bar sometimes [Race]

Open IsaacHatton opened this issue 10 months ago • 1 comments

image On beta v2.3000.1012596890 of WhatsApp, Chrome webstore version. image

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.

IsaacHatton avatar Apr 06 '24 16:04 IsaacHatton

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

tomer8007 avatar Apr 06 '24 22:04 tomer8007