mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +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:
parent
b63c90e401
commit
cc3462999b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user