cyruzzo / AboveVTT

GNU Affero General Public License v3.0
134 stars 62 forks source link

refactor: extract get_my_known_languages() #2584

Closed MonstraG closed 1 month ago

MonstraG commented 1 month ago

With last .toLowerCase() change I've noticed that this is done 3 times in 3 different places, which triggers my internal "time to extract it" breakpoint, so I did that.

I did not add toLowerCase() for comparison in MessageBroker.js, though it could be added there