commit 53449d47a993f615000490938ccbd1fa24ad6715
parent 71db21c6051635b47687072d99b88a4839c919ab
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 13 Sep 2012 14:42:15 -0400
Install styles served as application/vnd.citationstyles.style+xml
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/mimeTypeHandler.js b/chrome/content/zotero/xpcom/mimeTypeHandler.js
@@ -70,7 +70,8 @@ Zotero.MIMETypeHandler = new function () {
// Not even trying
this.addHandler("ris", _importHandler, true);
}
- this.addHandler("text/x-csl", function(a1, a2) { Zotero.Styles.install(a1, a2) });
+ this.addHandler("application/vnd.citationstyles.style+xml", function(a1, a2) { Zotero.Styles.install(a1, a2) });
+ this.addHandler("text/x-csl", function(a1, a2) { Zotero.Styles.install(a1, a2) }); // deprecated
this.addHandler("application/x-zotero-schema", Zotero.Schema.importSchema);
this.addHandler("application/x-zotero-settings", Zotero.Prefs.importSettings);
}