Mephiles / torntools_extension

A browser extension for Torn.com
GNU General Public License v3.0
106 stars 60 forks source link

Update the points value tooltip without having to refresh #762

Closed heyitsmdr closed 11 months ago

heyitsmdr commented 11 months ago

This is a minor quality of life change. When you gain/lose points, the value shown when hovering over the points will be updated as well. This will prevent you from having to refresh the page to see the current value of your points after making a few transactions.

Sashank999 commented 11 months ago

We don't actually need a MutationObserver for that. The value doesn't need to be updated realtime. It should only be updated once the user hovers over it. A simple mouseover listener should be sufficient. Will change it.

heyitsmdr commented 11 months ago

We don't actually need a MutationObserver for that. The value doesn't need to be updated realtime. It should only be updated once the user hovers over it. A simple mouseover listener should be sufficient. Will change it.

Ah, good call. I like that a lot better, thank you!