File tree 1 file changed +0
-9
lines changed
src/librustdoc/html/static/js
1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 5
5
// the page, so we don't see major layout changes during the load of the page.
6
6
"use strict" ;
7
7
8
- const darkThemes = [ "dark" , "ayu" ] ;
9
8
window . currentTheme = document . getElementById ( "themeStyle" ) ;
10
9
window . mainTheme = document . getElementById ( "mainThemeStyle" ) ;
11
10
@@ -228,14 +227,6 @@ function switchToSavedTheme() {
228
227
}
229
228
230
229
if ( isUsingSystemTheme ( ) && window . matchMedia ) {
231
- // update the preferred dark theme if the user is already using a dark theme
232
- // See https://github.com/rust-lang/rust/pull/77809#issuecomment-707875732
233
- if ( getTheme ( ) === null
234
- && getSettingValue ( "preferred-dark-theme" ) === null
235
- && darkThemes . indexOf ( getTheme ( ) ) >= 0 ) {
236
- updateLocalStorage ( "preferred-dark-theme" , getTheme ( ) ) ;
237
- }
238
-
239
230
// call the function to initialize the theme at least once!
240
231
updateSystemTheme ( ) ;
241
232
} else {
You can’t perform that action at this time.
0 commit comments