about summary refs log tree commit diff
path: root/src/librustdoc/html/static
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-01-23 00:45:34 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2018-01-23 00:45:34 +0100
commit5b8504401c7590130eb01a34155b12c26881b0b1 (patch)
tree6e33e25c97061a22f2869e21f182105dcfe38355 /src/librustdoc/html/static
parent5f93159e9ddc05f479ade72e604a0267b5413be7 (diff)
downloadrust-5b8504401c7590130eb01a34155b12c26881b0b1.tar.gz
rust-5b8504401c7590130eb01a34155b12c26881b0b1.zip
Fasten even more theme switch
Diffstat (limited to 'src/librustdoc/html/static')
-rw-r--r--src/librustdoc/html/static/storage.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/librustdoc/html/static/storage.js b/src/librustdoc/html/static/storage.js
index 7e384a64c0a..0aa1065b378 100644
--- a/src/librustdoc/html/static/storage.js
+++ b/src/librustdoc/html/static/storage.js
@@ -31,14 +31,6 @@ function getCurrentValue(name) {
 function switchTheme(styleElem, mainStyleElem, newTheme) {
     styleElem.href = mainStyleElem.href.replace("rustdoc.css", newTheme + ".css");
     updateLocalStorage('theme', newTheme);
-    /*var elem = document.getElementsByTagName('body')[0];
-    if (elem) {
-        updateLocalStorage('background', getComputedStyle(elem)['background-color']);
-    }*/
 }
 
-/*var elem = document.getElementsByTagName('body')[0];
-if (elem) {
-    var value = 
-}*/
 switchTheme(currentTheme, mainTheme, getCurrentValue('theme') || 'main');