From 9f75346dd8f756758b187c8b9c357a9c3dba7ccc Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 30 Jan 2022 20:23:55 +0000 Subject: [PATCH] Fix jpeg mime type determination. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3808 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 5f637b04..d2385e34 100644 --- a/core/core.js +++ b/core/core.js @@ -320,7 +320,7 @@ function startsWithBytes(data, bytes) { if (data.byteLength >= bytes.length) { var dataBytes = new Uint8Array(data.slice(0, bytes.length)); for (var i = 0; i < bytes.length; i++) { - if (dataBytes[i] != bytes[i] || bytes[i] === null) { + if (dataBytes[i] != bytes[i] && bytes[i] !== null) { return; } }