1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-26 19:47:20 +00:00

BibTex plugin: Fix a problem with MIME types under Ubuntu 18.04

Ubuntu 18.04 returns text/x-bibtex for .bib files instead of application/x-bibtex.
This commit is contained in:
Mario Pietsch 2018-05-16 15:20:51 +02:00 committed by Jeremy Ruston
parent 1436196758
commit 760c80c655

View File

@ -1999,6 +1999,7 @@ $tw.boot.startup = function(options) {
$tw.utils.registerFileType("application/vnd.openxmlformats-officedocument.wordprocessingml.document","base64",".docx");
$tw.utils.registerFileType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","base64",".xlsx");
$tw.utils.registerFileType("application/vnd.openxmlformats-officedocument.presentationml.presentation","base64",".pptx");
$tw.utils.registerFileType("text/x-bibtex","utf8",".bib",{deserializerType:"application/x-bibtex"});
$tw.utils.registerFileType("application/x-bibtex","utf8",".bib");
$tw.utils.registerFileType("application/epub+zip","base64",".epub");
// Create the wiki store for the app