Fix jpeg mime type determination.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3808 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2022-01-30 20:23:55 +00:00
parent b5111efc29
commit 9f75346dd8

View File

@ -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;
}
}