Fix analytics CSP (#182)

* Fix analytics CSP

* remove crash
This commit is contained in:
Geometrically
2023-06-20 22:10:18 -07:00
committed by GitHub
parent 4f9ec0e02b
commit 3f46882032
3 changed files with 3 additions and 8 deletions

4
Cargo.lock generated
View File

@@ -4567,7 +4567,7 @@ dependencies = [
[[package]] [[package]]
name = "theseus" name = "theseus"
version = "0.2.0" version = "0.2.1"
dependencies = [ dependencies = [
"async-tungstenite", "async-tungstenite",
"async_zip", "async_zip",
@@ -4608,7 +4608,7 @@ dependencies = [
[[package]] [[package]]
name = "theseus_cli" name = "theseus_cli"
version = "0.2.0" version = "0.2.1"
dependencies = [ dependencies = [
"argh", "argh",
"color-eyre", "color-eyre",

View File

@@ -193,9 +193,4 @@ fn main() {
builder builder
.run(tauri::generate_context!()) .run(tauri::generate_context!())
.expect("error while running tauri application"); .expect("error while running tauri application");
#[allow(deref_nullptr)]
unsafe {
*std::ptr::null_mut() = true;
}
} }

View File

@@ -79,7 +79,7 @@
} }
}, },
"security": { "security": {
"csp": "default-src 'self'; connect-src https://modrinth.com https://*.modrinth.com; font-src https://cdn-raw.modrinth.com/fonts/inter/; img-src tauri: https: data: blob: 'unsafe-inline' asset: https://asset.localhost" "csp": "default-src 'self'; connect-src https://modrinth.com https://*.modrinth.com https://mixpanel.com https://*.mixpanel.com; font-src https://cdn-raw.modrinth.com/fonts/inter/; img-src tauri: https: data: blob: 'unsafe-inline' asset: https://asset.localhost"
}, },
"updater": { "updater": {
"active": true, "active": true,