Open plain text files in code app && plain text files thumbnail

This commit is contained in:
ClemDee
2019-08-13 16:09:06 +02:00
parent 3a8914aefa
commit f55c8c6b04
9 changed files with 190 additions and 25 deletions

View File

@@ -367,7 +367,7 @@ define([
blobToArrayBuffer(file, function (e, buffer) {
if (e) { console.error(e); }
file_arraybuffer = buffer;
if (!Thumb.isSupportedType(file.type)) { return getName(); }
if (!Thumb.isSupportedType(file)) { return getName(); }
// make a resized thumbnail from the image..
Thumb.fromBlob(file, function (e, thumb64) {
if (e) { console.error(e); }