From 1958623a7a3063207d7ac16bbeee11e3ac3530c8 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 17 Feb 2024 18:59:36 +0000 Subject: [PATCH] Package prettier. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4855 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- GNUmakefile | 1 + src/httpd.js.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 44cc141d..b6aa28c7 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -714,6 +714,7 @@ PACKAGE_DIRS := \ apps/ \ core/ \ deps/codemirror/ \ + deps/prettier/ \ deps/lit/ RAW_FILES := $(filter-out apps/blog% apps/gg% apps/issues% apps/welcome% apps/journal% %.map, $(shell find $(PACKAGE_DIRS) -type f)) diff --git a/src/httpd.js.c b/src/httpd.js.c index f3f4102e..84994e00 100644 --- a/src/httpd.js.c +++ b/src/httpd.js.c @@ -533,8 +533,7 @@ static const char* _ext_to_content_type(const char* ext) { if (ext) { - if (strcmp(ext, ".js") == 0 || - strcmp(ext, ".mjs") == 0) + if (strcmp(ext, ".js") == 0 || strcmp(ext, ".mjs") == 0) { return "text/javascript; charset=UTF-8"; }