mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-06 22:04: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:
parent
b63c90e401
commit
cc3462999b
@ -1370,7 +1370,7 @@ exports.readFileContent = function(file,type,isBinary,deserializer,callback) {
|
|||||||
// Onload
|
// Onload
|
||||||
reader.onload = function(event) {
|
reader.onload = function(event) {
|
||||||
var text = event.target.result,
|
var text = event.target.result,
|
||||||
tiddlerFields = {title: file.name || "Untitled", type: type};
|
tiddlerFields = {title: file.name || "Untitled"};
|
||||||
if(isBinary) {
|
if(isBinary) {
|
||||||
var commaPos = text.indexOf(",");
|
var commaPos = text.indexOf(",");
|
||||||
if(commaPos !== -1) {
|
if(commaPos !== -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user