chore: add lint

This commit is contained in:
lencx
2023-01-22 14:46:04 +08:00
parent b875727753
commit 1d7bb3e051
7 changed files with 63 additions and 12 deletions

View File

@@ -42,10 +42,7 @@ pub fn dalle2_window(
let app = handle.clone();
let query = if query.is_some() {
format!(
"window.addEventListener('DOMContentLoaded', function() {{\nwindow.__CHATGPT_QUERY__='{}';\n}})",
query.unwrap()
)
format!("window.addEventListener('DOMContentLoaded', function() {{\nwindow.__CHATGPT_QUERY__='{}';\n}})", query.unwrap())
} else {
"".to_string()
};