GoogleChromeLabs / ProjectVisBug

FireBug for designers › Edit any webpage, in any state https://a.nerdy.dev/gimme-visbug
https://visbug.web.app
Apache License 2.0
5.42k stars 285 forks source link

Context menu color choice and VisBug don't match #511

Open argyleink opened 3 years ago

argyleink commented 3 years ago

found by @zeaccs

show visbug -> hide visbug -> change color mode to rgb -> show visbug again

I believe the issue that when hidden, eject.js deletes the node and restore.js creates a new one that never got the attribute update from the extension event. need to find a way to create a node in memory and share it. That way, no new ones get created, it's always the same first VisBug element, but depending on restoration or injection, it's present in the DOM.