From 0472908ef4961e7eec92cc0b97376420a71e5bc7 Mon Sep 17 00:00:00 2001 From: lights0123 Date: Sat, 13 Nov 2021 12:42:10 -0500 Subject: [PATCH] Fix csp causing blank screen in release mode --- desktop/src-tauri/.gitignore | 2 ++ desktop/src-tauri/tauri.conf.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/desktop/src-tauri/.gitignore b/desktop/src-tauri/.gitignore index 270a92d..fcf6e4f 100644 --- a/desktop/src-tauri/.gitignore +++ b/desktop/src-tauri/.gitignore @@ -8,3 +8,5 @@ WixTools config.json bundle.json + +/.cargo diff --git a/desktop/src-tauri/tauri.conf.json b/desktop/src-tauri/tauri.conf.json index 0277108..4c6e3b8 100644 --- a/desktop/src-tauri/tauri.conf.json +++ b/desktop/src-tauri/tauri.conf.json @@ -13,7 +13,7 @@ ], "resources": [], "externalBin": [], - "copyright": "Copyright (c) 2020 Ben Schattinger. Licensed under GPL-3.0", + "copyright": "Copyright (c) 2021 Ben Schattinger. Licensed under GPL-3.0", "category": "Utility", "shortDescription": "Free, cross-platform, CX-II compatible computer linking program for the TI-Nspire", "longDescription": "Free, cross-platform, CX-II compatible computer linking program for the TI-Nspire", @@ -52,7 +52,7 @@ } ], "security": { - "csp": "default-src blob: data: filesystem: ws: http: https: 'unsafe-eval' 'unsafe-inline'" + "csp": "default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'" } } }