Removed 220px icon

This commit is contained in:
Eduard Urbach 2018-03-29 13:43:17 +02:00
parent 797131939c
commit 62af32f003
2 changed files with 8 additions and 18 deletions

View File

@ -80,16 +80,6 @@
"sizes": "180x180",
"type": "image/webp"
},
{
"src": "images/brand/220.png",
"sizes": "220x220",
"type": "image/png"
},
{
"src": "images/brand/220.webp",
"sizes": "220x220",
"type": "image/webp"
},
{
"src": "images/brand/512.png",
"sizes": "512x512",

View File

@ -67,14 +67,6 @@ export async function search(arn: AnimeNotifier, search: HTMLInputElement, e: Ke
// Unmount mountables to improve visual responsiveness on key press
arn.unmountMountables()
// Delay
await delay(searchDelay)
if(term !== search.value.trim()) {
arn.mountMountables()
return
}
// Show loading spinner
arn.loading(true)
@ -99,6 +91,14 @@ export async function search(arn: AnimeNotifier, search: HTMLInputElement, e: Ke
history.replaceState(url, document.title, url)
}
// Delay
await delay(searchDelay)
if(term !== search.value.trim()) {
arn.mountMountables()
return
}
if(!animeSearchResults) {
animeSearchResults = document.getElementById("anime-search-results")
characterSearchResults = document.getElementById("character-search-results")