Based on Issue #12, reworked the dark theme activation based on a toggled class on the body tag. Since there is no manipulation of the stylesheet, no CORS violations are blocked. Also added a default of honoring the user's OS preference, for the fun of it.
Tested on current versions of Firefox and Chrome on Windows without issue. (Changes do not work on ie, but neither did previous version or does the main project so did not add backwards compatibility).
Based on Issue #12, reworked the dark theme activation based on a toggled class on the body tag. Since there is no manipulation of the stylesheet, no CORS violations are blocked. Also added a default of honoring the user's OS preference, for the fun of it.
Tested on current versions of Firefox and Chrome on Windows without issue. (Changes do not work on ie, but neither did previous version or does the main project so did not add backwards compatibility).