From 7258b3cece56d458b196f4070d2b807676e7550e Mon Sep 17 00:00:00 2001 From: Philippe Hugo Date: Wed, 27 Jul 2022 17:59:11 +0200 Subject: [PATCH 1/2] Add /manifest.json to static files --- src/util/util.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/util.cr b/src/util/util.cr index ce658aa..4bda90a 100644 --- a/src/util/util.cr +++ b/src/util/util.cr @@ -1,7 +1,7 @@ IMGS_PER_PAGE = 5 ENTRIES_IN_HOME_SECTIONS = 8 UPLOAD_URL_PREFIX = "/uploads" -STATIC_DIRS = %w(/css /js /img /webfonts /favicon.ico /robots.txt) +STATIC_DIRS = %w(/css /js /img /webfonts /favicon.ico /robots.txt /manifest.json) SUPPORTED_FILE_EXTNAMES = [".zip", ".cbz", ".rar", ".cbr"] SUPPORTED_IMG_TYPES = %w( image/jpeg From 4c2f802e2e79defb1176ff3b4269faaddf138e8f Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Sun, 31 Jul 2022 10:19:21 +0000 Subject: [PATCH 2/2] Fix linter --- src/util/util.cr | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/util/util.cr b/src/util/util.cr index 4bda90a..5060694 100644 --- a/src/util/util.cr +++ b/src/util/util.cr @@ -1,9 +1,10 @@ IMGS_PER_PAGE = 5 ENTRIES_IN_HOME_SECTIONS = 8 UPLOAD_URL_PREFIX = "/uploads" -STATIC_DIRS = %w(/css /js /img /webfonts /favicon.ico /robots.txt /manifest.json) -SUPPORTED_FILE_EXTNAMES = [".zip", ".cbz", ".rar", ".cbr"] -SUPPORTED_IMG_TYPES = %w( +STATIC_DIRS = %w(/css /js /img /webfonts /favicon.ico /robots.txt + /manifest.json) +SUPPORTED_FILE_EXTNAMES = [".zip", ".cbz", ".rar", ".cbr"] +SUPPORTED_IMG_TYPES = %w( image/jpeg image/png image/webp