Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fixed dark-theme toggle not working in legacy pages #128

Open
wants to merge 1 commit into
base: release
Choose a base branch
from

Conversation

rehmansheikh222
Copy link

The dark theme toggle button was not working in the legacy pages because of the dark-theme.js file being executed twice as a VM file duplicate of dark-theme.js file is created by the browser so the event for onChange gets triggered twice. This PR puts a guard at the top of the file so that it only executes just once.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

1 participant