Skip to content

Commit

Permalink
Draw style path from config
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Dec 5, 2023
1 parent 9419a7c commit 6e5df54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion style.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Sys = require("./sys").Sys;

function getStyle(cfg) {
var sys = new Sys();
var stylePath = path.join(path.dirname(require.main.filename), cfg.styleName);
var stylePath = cfg.stylePath;
var styleXml = fs.readFileSync(stylePath).toString();

var style = new CSL.Engine(sys, styleXml);
Expand Down

0 comments on commit 6e5df54

Please sign in to comment.