Open joshmakar opened 2 years ago
@joshmakar I don't think the issue is that the value is surrounded by quotes. Did you try to use the get()
method to retrieve the value?
toggleDarkTheme() {
const currentTheme = preference("applicationTheme").get();
preference("applicationTheme").set(
currentTheme === "default" ? "dark" : "default"
);
},
Describe the bug It seems like when a string value is stored, it's being stored with additional quotes around the string.
To Reproduce Steps to reproduce the behavior:
Expected behavior The value shouldn't be surrounded by quotes.
Screenshots
Desktop (please complete the following information):