1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

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

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) {