When importing don't use file type as content type

Fixes #5028

I've checked that importing other file types still works but would appreciate a sanity check!
This commit is contained in:
jeremy@jermolene.com 2020-11-14 12:05:35 +00:00
parent b63c90e401
commit cc3462999b
1 changed files with 1 additions and 1 deletions

View File

@ -1370,7 +1370,7 @@ exports.readFileContent = function(file,type,isBinary,deserializer,callback) {
// Onload
reader.onload = function(event) {
var text = event.target.result,
tiddlerFields = {title: file.name || "Untitled", type: type};
tiddlerFields = {title: file.name || "Untitled"};
if(isBinary) {
var commaPos = text.indexOf(",");
if(commaPos !== -1) {