🎨 Just code formatting
This commit is contained in:
2
src-tauri/src/inject/event.js
vendored
2
src-tauri/src/inject/event.js
vendored
@@ -63,7 +63,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
const appWindow = tauri.window.appWindow;
|
||||
const invoke = tauri.tauri.invoke;
|
||||
|
||||
if(!document.getElementById('pake-top-dom')){
|
||||
if (!document.getElementById('pake-top-dom')) {
|
||||
const topDom = document.createElement('div');
|
||||
topDom.id = 'pake-top-dom';
|
||||
document.body.appendChild(topDom);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#![cfg_attr(
|
||||
all(not(debug_assertions), target_os = "windows"),
|
||||
windows_subsystem = "windows"
|
||||
all(not(debug_assertions), target_os = "windows"),
|
||||
windows_subsystem = "windows"
|
||||
)]
|
||||
|
||||
mod app;
|
||||
|
||||
@@ -7,12 +7,15 @@ 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");
|
||||
|
||||
#[cfg(not(feature = "cli-build"))]
|
||||
let pake_config: PakeConfig =
|
||||
serde_json::from_str(include_str!("../pake.json")).expect("Failed to parse pake config");
|
||||
|
||||
#[cfg(feature = "cli-build")]
|
||||
let tauri_config: Config = serde_json::from_str(include_str!("../.pake/tauri.conf.json"))
|
||||
.expect("Failed to parse tauri config");
|
||||
|
||||
#[cfg(not(feature = "cli-build"))]
|
||||
let tauri_config: Config = serde_json::from_str(include_str!("../tauri.conf.json"))
|
||||
.expect("Failed to parse tauri config");
|
||||
|
||||
Reference in New Issue
Block a user