diff options
author | Benjamin Kiessling <mittagessen@l.unchti.me> | 2012-01-27 03:28:00 +0100 |
---|---|---|
committer | Benjamin Kiessling <mittagessen@l.unchti.me> | 2012-01-27 03:28:00 +0100 |
commit | 11766a4bc5940b40c904f43676cc5d33583eb66e (patch) | |
tree | ffb307b3ce06d6e5a39e0af7eb7e1823fecdfae5 | |
parent | c9f753afece5ba93e236c448158b90d788746369 (diff) |
Fix path generation
-rw-r--r-- | frontend.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend.js b/frontend.js index ee811cd..718d510 100644 --- a/frontend.js +++ b/frontend.js @@ -23,8 +23,9 @@ exports.start = function(config) { for(var slide in slides['slides']) { if(!slides['slides'].hasOwnProperty(slide)) { continue; } if(slides['slides'][slide]['type'] === 'image') { + console.log(slides['slides'][slide]['file']); slidesAr.push({ - image: slides['slides'][slide]['file'] + image: '/' + slides['slides'][slide]['file'] }); } if(slides['slides'][slide]['head'].length > 0) { @@ -50,7 +51,6 @@ exports.start = function(config) { eventObj[evF] = slides['events'][date][ev][evF]; } } - console.log(eventObj); eventAr[eventAr.length - 1]['events'].push(eventObj); } } |