]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/static/js/settings.js
Auto merge of #107443 - cjgillot:generator-less-query, r=compiler-errors
[rust.git] / src / librustdoc / html / static / js / settings.js
index a841b4b63bae8c1c557fd29475bcb6f016144380..1cd552e7f25b712799c2855fd2dc6281e34ed215 100644 (file)
@@ -1,5 +1,5 @@
 // Local js definitions:
-/* global getSettingValue, getVirtualKey, updateLocalStorage, updateSystemTheme */
+/* global getSettingValue, getVirtualKey, updateLocalStorage, updateTheme */
 /* global addClass, removeClass, onEach, onEachLazy, blurHandler, elemIsInParent */
 /* global MAIN_ID, getVar, getSettingsButton */
 
@@ -19,7 +19,7 @@
             case "theme":
             case "preferred-dark-theme":
             case "preferred-light-theme":
-                updateSystemTheme();
+                updateTheme();
                 updateLightAndDark();
                 break;
             case "line-numbers":