Closed younesaassila closed 7 months ago
Should clarify: whitelisted the channel from the extension popup
The problem is that a new whitelist button click event listener keeps being added every time the stats get refreshed!
Should check whole project for addEventListeners leaks
sendMessageAndWaitForResponse
doesn't remove the message event listener if successful, this should be fixed. Also store
should auto remove all load event listeners once it dispatched all of them.
URL.revokeObjectURL
To fix: Move event listener outside of setWhitelistStatus
. setWhitelistStatus
should set attribute data-channel
on whitelist button so event listener knows the channel to whitelist