fix(Viewer): include logo relative to viewer

This allows us to correctly include bpmn-js from other npm projects.
This commit is contained in:
Nico Rehwaldt 2014-05-09 15:19:53 +02:00
parent 4be0d99193
commit 98e7e5e807
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ function Viewer(options) {
*
* <project-logo>
*/
var logoData = fs.readFileSync('resources/bpmnjs.png', 'base64');
var logoData = fs.readFileSync(__dirname + '/../resources/bpmnjs.png', 'base64');
var a = $('<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" />').css({
position: 'absolute',