From ee76e9e21c93712d50954376a0a9388ad9d53120 Mon Sep 17 00:00:00 2001 From: medzernik <1900179+medzernik@users.noreply.github.com> Date: Wed, 18 Jan 2023 15:42:14 +0100 Subject: [PATCH 1/2] removed unused imports --- wooting-macro-backend/src/lib.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/wooting-macro-backend/src/lib.rs b/wooting-macro-backend/src/lib.rs index ca139e46..e7c6d9b1 100644 --- a/wooting-macro-backend/src/lib.rs +++ b/wooting-macro-backend/src/lib.rs @@ -21,7 +21,6 @@ use halfbrown::HashMap; use config::{ApplicationConfig, ConfigFile}; #[cfg(not(debug_assertions))] use dirs; -use tauri::State; // This has to be imported for release build #[allow(unused_imports)] @@ -596,10 +595,6 @@ impl Default for MacroBackend { } } -// /// Sets whether the macro listening processing is happening. -// pub fn set_macro_listening(state: State, frontend_bool: bool) { -// state.is_listening.store(frontend_bool, Ordering::Relaxed); -// } #[cfg(test)] mod tests { From 026aff0917c6987cadcd58e1fb041ea254c29a46 Mon Sep 17 00:00:00 2001 From: medzernik <1900179+medzernik@users.noreply.github.com> Date: Wed, 18 Jan 2023 16:11:02 +0100 Subject: [PATCH 2/2] removed the csp flag --- src-tauri/tauri.conf.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index f3cefa3e..6e77730e 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -66,7 +66,7 @@ "targets": "all" }, "security": { - "csp": "default-src 'self'" + "csp": null }, "systemTray": { "iconPath": "icon.png",