Update lib.rs

pull/427/head
Amr Bashir 2 years ago committed by GitHub
parent 0903cc8671
commit e2295c7db5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -97,7 +97,7 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
let eol = "\r\n";
#[cfg(not(windows))]
let eol = "\n";
init_script.push_str(&format!("window.__TAURI_OS__.EOL = '{eol}'"));
init_script.push_str(&format!("window.__TAURI_OS__.EOL = '{eol}';"));
Builder::new("os")
.js_init_script(init_script)

Loading…
Cancel
Save