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