Skip to content

Commit b1f0f9f

Browse files
authored
Merge pull request #238 from Polyfrost/clusterbanner
LAUNCHER-49 Fix: cluster banners displaying correctly on windows
2 parents 59183e9 + 39f43ae commit b1f0f9f

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

apps/desktop/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"withGlobalTauri": true,
77
"macOSPrivateApi": true,
88
"security": {
9-
"csp": null,
9+
"csp": "img-src 'self' asset: http://asset.localhost",
1010
"assetProtocol": {
1111
"enable": true,
1212
"scope": {

apps/frontend/src/ui/components/game/ClusterCover.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ function ClusterCover(props: ClusterCoverProps) {
2424
if (url === undefined || url === null)
2525
return split.fallback || defaultCover;
2626

27-
if (url.startsWith('/'))
28-
return convertFileSrc(url);
29-
30-
return url;
27+
return convertFileSrc(url);
3128
};
3229

3330
const Wrapper = (props: ParentProps) => (

0 commit comments

Comments
 (0)