From 62af32f003a8817b8f21f51c718d4b6fea6d1d32 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 29 Mar 2018 13:43:17 +0200 Subject: [PATCH] Removed 220px icon --- config.json | 10 ---------- scripts/Actions/Search.ts | 16 ++++++++-------- 2 files changed, 8 insertions(+), 18 deletions(-) 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")