mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
recognize .csl.txt files
This commit is contained in:
parent
b24884d8ea
commit
da40bc07d2
1 changed files with 1 additions and 1 deletions
|
|
@ -693,7 +693,7 @@ Zotero_Browser.Tab.prototype._searchFrames = function(rootDoc, searchDoc) {
|
|||
* Attempts import of a file; to be run on local files only
|
||||
*/
|
||||
Zotero_Browser.Tab.prototype._attemptLocalFileImport = function(doc) {
|
||||
if(doc.documentURI.match(/\.csl(\.xml)?$/i)) {
|
||||
if(doc.documentURI.match(/\.csl(\.xml|\.txt)?$/i)) {
|
||||
// read CSL string
|
||||
var csl = Zotero.File.getContentsFromURL(doc.documentURI);
|
||||
if(csl.indexOf("http://purl.org/net/xbiblio/csl") != -1) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue