diff options
Diffstat (limited to 'src/reader.ts')
| -rw-r--r-- | src/reader.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reader.ts b/src/reader.ts index ac8c316..dbd505b 100644 --- a/src/reader.ts +++ b/src/reader.ts @@ -1369,7 +1369,7 @@ class ReaderClass extends AppCommon { $(".header,.footer").fadeIn(); } - async lookupWord(word: any, callback: any, elem: any) { + async lookupWord(word: any, callback: any, elem: any = null) { if (elem) word = $(elem).val(); @@ -1774,7 +1774,7 @@ class ReaderLoader { const cache = await caches.open(cacheName); const cacheKeys = await cache.keys(); - const promises = []; + const promises: Promise<void>[] = []; let loadFailed = false; for (const req of cacheKeys) { |
