From fcbbf8d312c01b6287f4011f27ddb953c3182501 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 24 Aug 2019 15:18:16 +0200 Subject: [PATCH] Fix system theme detection --- src/librustdoc/html/static/storage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/librustdoc/html/static/storage.js b/src/librustdoc/html/static/storage.js index c55b1e41443..ab2cf8f796d 100644 --- a/src/librustdoc/html/static/storage.js +++ b/src/librustdoc/html/static/storage.js @@ -118,7 +118,8 @@ function switchTheme(styleElem, mainStyleElem, newTheme, saveTheme) { } function getSystemValue() { - return getComputedStyle(document.documentElement).getPropertyValue('content'); + var property = getComputedStyle(document.documentElement).getPropertyValue('content'); + return property.replace(/\"\'/g, ""); } switchTheme(currentTheme, mainTheme,