You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the following line to set the users color mode preference: this.$nuxt.$colorMode.preference = this.checked ? "dark" : "light";
As I understand it this should set the default preference of the user. When requesting the preference of the user I am then getting this.$nuxt.$colorMode.preference = 'system'
I assume that here system is representing that this module will check for the stored cookie on the users browser and take the literal string value from there.
When trying to check what that value is I am still getting system (However when printing the entire ColorMode object I am actually getting 'dark'.
What is the correct way to understand what is the VALUE of the system preference?
The text was updated successfully, but these errors were encountered:
I am using the following line to set the users color mode preference:
this.$nuxt.$colorMode.preference = this.checked ? "dark" : "light";
As I understand it this should set the default preference of the user. When requesting the preference of the user I am then getting
this.$nuxt.$colorMode.preference = 'system'
I assume that here system is representing that this module will check for the stored cookie on the users browser and take the literal string value from there.
When trying to check what that value is I am still getting system (However when printing the entire ColorMode object I am actually getting 'dark'.
What is the correct way to understand what is the VALUE of the system preference?
The text was updated successfully, but these errors were encountered: