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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 8 deletions

4
Cargo.lock generated
View File

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

View File

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

View File

@ -79,7 +79,7 @@
}
},
"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": {
"active": true,