diff --git a/config.json b/config.json index 5ee91cbf..d27bba2d 100644 --- a/config.json +++ b/config.json @@ -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", diff --git a/scripts/Actions/Search.ts b/scripts/Actions/Search.ts index 1370024e..527330fa 100644 --- a/scripts/Actions/Search.ts +++ b/scripts/Actions/Search.ts @@ -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")