Skip to content

Commit

Permalink
Use GitHub copy of style
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Mar 7, 2016
1 parent 601df25 commit 78b92cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions _templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@
function getProcessor(styleID) {
// Get the CSL style as a serialized string of XML
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://www.zotero.org/styles/' + styleID + '?source=1', false);
xhr.setRequestHeader("Origin", "https://citeproc-js.readthedocs.org");
xhr.open('GET', 'https://raw.githubusercontent.com/citation-style-language/styles/master/' styleID + '.csl', false);
xhr.send(null);
var styleAsText = xhr.responseText;
var citeproc = new CSL.Engine(citeprocSys, styleAsText);
Expand Down

0 comments on commit 78b92cc

Please sign in to comment.