Skip to content

Fix: skip theme switcher script when its markup is absent (on website) - #473

Open
kiyomi015 wants to merge 1 commit into
daisy:masterfrom
kiyomi015:fix/162-checkbox-null
Open

kiyomi015 wants to merge 1 commit into
daisy:masterfrom
kiyomi015:fix/162-checkbox-null

Conversation

@kiyomi015

Copy link
Copy Markdown

The theme switcher block in dom-scripts.js checks #themer and #inverter, but they are never set, so every page threw "checkbox is null" at dom-scripts.js:122 Return early when they are missing

Closes #162

The theme switcher block in dom-scripts.js checks #themer and #inverter, but they are never set, so every page threw "checkbox is null" at dom-scripts.js:122
Return early when they are missing

Closes daisy#162

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

script error on website

1 participant