style: fmt rust code
This commit is contained in:
@@ -30,7 +30,7 @@ pub fn get_window(app: &mut App, config: PakeConfig, _data_dir: PathBuf) -> Wind
|
||||
.initialization_script(include_str!("../inject/component.js"))
|
||||
.initialization_script(include_str!("../inject/event.js"))
|
||||
.initialization_script(include_str!("../inject/style.js"))
|
||||
.initialization_script(include_str!("../inject/_INJECT_.js")); //Very annoying, otherwise dragging files to the window will not work.
|
||||
.initialization_script(include_str!("../inject/custom.js")); //Very annoying, otherwise dragging files to the window will not work.
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
{
|
||||
|
||||
0
src-tauri/src/inject/_INJECT_.js
vendored
0
src-tauri/src/inject/_INJECT_.js
vendored
2
src-tauri/src/inject/custom.js
vendored
Normal file
2
src-tauri/src/inject/custom.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
// This file is used to merge the injected external js and css files
|
||||
// and you can also directly add script files that you want to attach to the application in this fil
|
||||
@@ -5,8 +5,8 @@ use tauri::{api, Config, Window};
|
||||
|
||||
pub fn get_pake_config() -> (PakeConfig, Config) {
|
||||
#[cfg(feature = "cli-build")]
|
||||
let pake_config: PakeConfig =
|
||||
serde_json::from_str(include_str!("../.pake/pake.json")).expect("Failed to parse pake config");
|
||||
let pake_config: PakeConfig = serde_json::from_str(include_str!("../.pake/pake.json"))
|
||||
.expect("Failed to parse pake config");
|
||||
#[cfg(not(feature = "cli-build"))]
|
||||
let pake_config: PakeConfig =
|
||||
serde_json::from_str(include_str!("../pake.json")).expect("Failed to parse pake config");
|
||||
|
||||
Reference in New Issue
Block a user