From 7c2962afcf6f9f37bbe0f650945958ee8f5b478c Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 27 Feb 2022 21:15:36 +0000 Subject: [PATCH] Oof. I couldn't have an app with its own style.css. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3852 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- core/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core.js b/core/core.js index 43aa54d7..94aa7841 100644 --- a/core/core.js +++ b/core/core.js @@ -409,7 +409,7 @@ async function blobHandler(request, response, blobId, uri) { var found = false; if (!found) { for (var i in kStaticFiles) { - if (uri === kStaticFiles[i].uri) { + if (uri === kStaticFiles[i].uri && kStaticFiles[i].path) { found = true; var data = await File.readFile("core/" + kStaticFiles[i].path); response.writeHead(200, {"Content-Type": kStaticFiles[i].type, "Content-Length": data.byteLength});