|
|
@ -97,7 +97,7 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
|
|
|
let eol = "\r\n";
|
|
|
|
let eol = "\r\n";
|
|
|
|
#[cfg(not(windows))]
|
|
|
|
#[cfg(not(windows))]
|
|
|
|
let eol = "\n";
|
|
|
|
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")
|
|
|
|
Builder::new("os")
|
|
|
|
.js_init_script(init_script)
|
|
|
|
.js_init_script(init_script)
|
|
|
|