Skip to content

Commit

Permalink
images not loading fixed (probably)
Browse files Browse the repository at this point in the history
  • Loading branch information
nobleknightt committed Feb 13, 2024
1 parent 6edeadd commit cf7b50b
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export default defineConfig({
plugins: [
react(),
VitePWA({
registerType: 'autoUpdate',
registerType: "autoUpdate",
includeAssets: ["pwa-192x192.png", "pwa-512x512.png", "pwa-maskable-192x192.png", "pwa-maskable-512x512.png"],
manifest: {
"name": "Contests",
"short_name": "Contests",
Expand Down
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
<title>Contests</title>
<script type="module" crossorigin src="./assets/index-yB_ETrf3.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-FF4BGD2K.css">
<link rel="manifest" href="./manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="./registerSW.js"></script></head>
<link rel="manifest" href="./manifest.webmanifest">
<script id="vite-plugin-pwa:register-sw" src="./registerSW.js"></script>
</head>

<body>
<div id="root"></div>
Expand Down
38 changes: 37 additions & 1 deletion manifest.webmanifest
Original file line number Diff line number Diff line change
@@ -1 +1,37 @@
{"name":"Contests","short_name":"Contests","start_url":"/","display":"standalone","background_color":"#FFFFFF","lang":"en","scope":"./","icons":[{"src":"/pwa-192x192.png","sizes":"192x192","type":"image/png","purpose":"any"},{"src":"/pwa-512x512.png","sizes":"512x512","type":"image/png","purpose":"any"},{"src":"/pwa-maskable-192x192.png","sizes":"192x192","type":"image/png","purpose":"maskable"},{"src":"/pwa-maskable-512x512.png","sizes":"512x512","type":"image/png","purpose":"maskable"}],"theme_color":"#FFFFFF","description":"Ongoing and Upcoming Contests on AtCoder, CodeChef, Codeforces, GeeksforGeeks and LeetCode"}
{
"name": "Contests",
"short_name": "Contests",
"start_url": "/",
"display": "standalone",
"background_color": "#FFFFFF",
"lang": "en",
"scope": "./",
"icons": [
{
"src": "/pwa-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "/pwa-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "/pwa-maskable-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/pwa-maskable-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#FFFFFF",
"description": "Ongoing and Upcoming Contests on AtCoder, CodeChef, Codeforces, GeeksforGeeks and LeetCode"
}

0 comments on commit cf7b50b

Please sign in to comment.