Liquipedia / Liquipedia.net-page

Liquipedia landing page
https://liquipedia.net
28 stars 11 forks source link

make sure the dark theme toggle functions cannot indefinitely loop rough events #49

Closed FO-nTTaX closed 8 months ago

FO-nTTaX commented 8 months ago

Description

This disables writing to localStorage when the theme is changed by a localStorage event. This should be fine, as the value in localStorage should already have that value. As a result we avoid a situation where we have localStorage being written again and again which I suspect is causing the event handler to repeatedly fire.

Related Issues

Closes https://gitlab.com/teamliquid-dev/liquipedia/web/issue-bucket/-/issues/25

Checklist