Skip to content

Commit

Permalink
修复png支持
Browse files Browse the repository at this point in the history
  • Loading branch information
qinlili23333 committed Jun 15, 2022
1 parent b6d8b28 commit 6a390df
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
Binary file added icon_badminton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon_badminton_mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon_badminton_mask_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 24 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,31 @@
"scope": "/",
"name": "545在线",
"short_name": "545在线",
"icons": [{
"icons": [
{
"src": "icon_badminton.webp",
"sizes": "1280x1280",
"type": "image/webp",
"purpose": "any"
},
{
"src": "icon_badminton.png",
"sizes": "1280x1280",
"type": "image/png",
"purpose": "any"
},
{
"src": "icon_badminton_mask.webp",
"sizes": "1600x1600",
"type": "image/webp",
"purpose": "maskable"
},
{
"src": "icon_badminton_mask.png",
"sizes": "1600x1600",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "icon_badminton_small.webp",
"sizes": "512x512",
Expand All @@ -27,18 +40,27 @@
"type": "image/webp",
"purpose": "maskable"
},
{
"src": "icon_badminton_mask_small.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "icon_mono.png",
"sizes": "256x256",
"type": "image/png",
"purpose": "monochrome"
}
],
"launch_handler": {
"route_to": "existing-client",
"navigate_existing_client": "always"
},
"start_url": "/",
"display": "standalone",
"display_override": [],
"id": "/",
"lang": "zh-cn",
"orientation": "any",
"background_color": "#FADCBB",
"theme_color": "#FADCBB",
Expand Down
5 changes: 0 additions & 5 deletions sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,6 @@ self.addEventListener('install', e => {
})
})
};
if (self.location.host.indexOf("vercel") == -1 && self.location.host.indexOf("glitch") == -1) {
await cache.addAll(AZUSA_PATCH_SKIP_LIST.concat(URLS)).catch(() => {});
} else {
await cache.addAll(AZUSA_PATCH_SKIP_LIST).catch(() => {});
}
return true;
}
e.waitUntil(install());
Expand Down

1 comment on commit 6a390df

@vercel
Copy link

@vercel vercel bot commented on 6a390df Jun 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.