Improve documentation, add checks for themes option arguments, make sure the themes file names are js compatible
This commit is contained in:
@@ -645,7 +645,7 @@ themePicker.onblur = handleThemeButtonsBlur;
|
||||
themes.appendChild(but);
|
||||
}});"#,
|
||||
themes.iter()
|
||||
.map(|s| format!("\"{}\"", s))
|
||||
.map(|s| format!("\"{}\"", s.replace("\\", "\\\\").replace("\"", "\\\"")))
|
||||
.collect::<Vec<String>>()
|
||||
.join(","));
|
||||
write(cx.dst.join(&format!("theme{}.js", cx.shared.resource_suffix)),
|
||||
|
||||
Reference in New Issue
Block a user