From 98e7e5e80798a35c2b95f994d0fec87b7b8b26ee Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Fri, 9 May 2014 15:19:53 +0200 Subject: [PATCH] fix(Viewer): include logo relative to viewer This allows us to correctly include bpmn-js from other npm projects. --- lib/Viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Viewer.js b/lib/Viewer.js index 67541034..60364970 100644 --- a/lib/Viewer.js +++ b/lib/Viewer.js @@ -64,7 +64,7 @@ function Viewer(options) { * * */ - var logoData = fs.readFileSync('resources/bpmnjs.png', 'base64'); + var logoData = fs.readFileSync(__dirname + '/../resources/bpmnjs.png', 'base64'); var a = $('').css({ position: 'absolute',