mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-14 12:59:46 +02:00
Usage of path.join for adding styles as per suggestions from @fardog
This commit is contained in:
@@ -4,6 +4,7 @@ var fs = require('fs')
|
|||||||
, which = require('which')
|
, which = require('which')
|
||||||
, parseArgs = require('minimist')
|
, parseArgs = require('minimist')
|
||||||
, semver = require('semver')
|
, semver = require('semver')
|
||||||
|
, path = require('path')
|
||||||
|
|
||||||
var PHANTOM_VERSION = "^1.9.0"
|
var PHANTOM_VERSION = "^1.9.0"
|
||||||
|
|
||||||
@@ -110,7 +111,7 @@ cli.prototype.parse = function(argv, next) {
|
|||||||
this.errors.push(err)
|
this.errors.push(err)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
options.css = fs.readFileSync(__dirname + '/../dist/mermaid.css')
|
options.css = fs.readFileSync(path.join(__dirname, '..', 'dist', 'mermaid.css'))
|
||||||
}
|
}
|
||||||
|
|
||||||
this.checkPhantom = createCheckPhantom(options.phantomPath)
|
this.checkPhantom = createCheckPhantom(options.phantomPath)
|
||||||
|
Reference in New Issue
Block a user