mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +00:00
Recognise the image/jpg content type, even though it's not really legal
Browsers also respect it. Fixes #4571
This commit is contained in:
parent
83f976ea54
commit
4c6de22711
@ -2264,6 +2264,7 @@ $tw.boot.initStartup = function(options) {
|
|||||||
$tw.utils.registerFileType("application/zip","base64",".zip");
|
$tw.utils.registerFileType("application/zip","base64",".zip");
|
||||||
$tw.utils.registerFileType("application/x-zip-compressed","base64",".zip");
|
$tw.utils.registerFileType("application/x-zip-compressed","base64",".zip");
|
||||||
$tw.utils.registerFileType("image/jpeg","base64",[".jpg",".jpeg"],{flags:["image"]});
|
$tw.utils.registerFileType("image/jpeg","base64",[".jpg",".jpeg"],{flags:["image"]});
|
||||||
|
$tw.utils.registerFileType("image/jpg","base64",[".jpg",".jpeg"],{flags:["image"]});
|
||||||
$tw.utils.registerFileType("image/png","base64",".png",{flags:["image"]});
|
$tw.utils.registerFileType("image/png","base64",".png",{flags:["image"]});
|
||||||
$tw.utils.registerFileType("image/gif","base64",".gif",{flags:["image"]});
|
$tw.utils.registerFileType("image/gif","base64",".gif",{flags:["image"]});
|
||||||
$tw.utils.registerFileType("image/webp","base64",".webp",{flags:["image"]});
|
$tw.utils.registerFileType("image/webp","base64",".webp",{flags:["image"]});
|
||||||
|
Loading…
Reference in New Issue
Block a user