From 083bd951c480cf0fcef454eb03103ffdc48604ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20Marcher?= Date: Tue, 23 Aug 2022 22:28:08 +0200 Subject: [PATCH] Update basics-ts-page.ts --- .../image-cache/basics/basics-ts-page.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ns-ui-widgets-category/image-cache/basics/basics-ts-page.ts b/app/ns-ui-widgets-category/image-cache/basics/basics-ts-page.ts index 1ff93af..287c7eb 100644 --- a/app/ns-ui-widgets-category/image-cache/basics/basics-ts-page.ts +++ b/app/ns-ui-widgets-category/image-cache/basics/basics-ts-page.ts @@ -18,7 +18,7 @@ function cacheImage(viewModel) { cache.placeholder = ImageSource.fromFileSync("~/images/logo.png"); cache.maxRequests = 5; - // set the placeholder while the desired image is donwloaded + // set the placeholder while the desired image is downloaded viewModel.set("imageSource", cache.placeholder); // Enable download while not scrolling @@ -41,7 +41,7 @@ function cacheImage(viewModel) { completed: (image, key) => { if (url === key) { cachedImageSource = new ImageSource(image); - viewModel.set("imageSource", cachedImageSource); // set the downloaded iamge + viewModel.set("imageSource", cachedImageSource); // set the downloaded image } } });