From 760c80c655d97b56720b12036ff81c4811051d27 Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Wed, 16 May 2018 15:20:51 +0200 Subject: [PATCH] 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. --- boot/boot.js | 1 + 1 file changed, 1 insertion(+) diff --git a/boot/boot.js b/boot/boot.js index 431c708ad..bb06047b3 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -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