We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eea0e39 commit c4d0a1bCopy full SHA for c4d0a1b
src/librustdoc/html/static/storage.js
@@ -107,11 +107,7 @@ function switchTheme(newTheme, saveTheme) {
107
var themeFile = themeName + resourcesSuffix + ".css";
108
var themeSheet = document.querySelector("[href$='" + themeFile + "']");
109
110
- if (themeName === newTheme) {
111
- themeSheet.disabled = false;
112
- } else {
113
- themeSheet.disabled = true;
114
- }
+ themeSheet.disabled = themeName !== newTheme;
115
});
116
// If this new value comes from a system setting or from the previously saved theme, no
117
// need to save it.
0 commit comments