Commit 822e0af7 authored by Mike Bostock's avatar Mike Bostock
Browse files

Fix relative path.

parent e31c0fb2
var fs = require("fs"),
path = require("path"),
document = require("jsdom").jsdom("<html><head></head><body></body></html>"),
window = document.createWindow();
......@@ -10,5 +11,5 @@ CSSStyleDeclaration_prototype.setProperty = function(name, value, priority) {
};
module.exports = (new Function("window", "document",
"return " + fs.readFileSync("./d3.js", "utf-8"))
"return " + fs.readFileSync(path.join(__dirname, "d3.js"), "utf-8"))
)(window, document);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment