Enforce quote rule for JS source code
This commit is contained in:
parent
f9b2e3c87b
commit
14897180ae
6 changed files with 56 additions and 52 deletions
|
@ -24,7 +24,7 @@ function getSettingValue(settingName) {
|
|||
if (settingsDataset !== null) {
|
||||
// See the comment for `default_settings.into_iter()` etc. in
|
||||
// `Options::from_matches` in `librustdoc/config.rs`.
|
||||
const def = settingsDataset[settingName.replace(/-/g,'_')];
|
||||
const def = settingsDataset[settingName.replace(/-/g,"_")];
|
||||
if (def !== undefined) {
|
||||
return def;
|
||||
}
|
||||
|
@ -173,7 +173,7 @@ const updateSystemTheme = (function () {
|
|||
// fallback to the CSS computed value
|
||||
return () => {
|
||||
const cssTheme = getComputedStyle(document.documentElement)
|
||||
.getPropertyValue('content');
|
||||
.getPropertyValue("content");
|
||||
|
||||
switchTheme(
|
||||
window.currentTheme,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue