From e6abe5b58c0b653d9da9a5d8a69ad31ff9edbffc Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 3 Nov 2016 17:48:53 +0100 Subject: [PATCH] examples: use absolute path otherwise it doesn't work --- app/main/callbacks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main/callbacks.js b/app/main/callbacks.js index 763eb783..25ad330d 100644 --- a/app/main/callbacks.js +++ b/app/main/callbacks.js @@ -17,7 +17,7 @@ module.exports = { if (settings.read('examples')) { var dir = path.resolve(__dirname + '/../examples') recentSessions = fs.readdirSync(dir) - recentSessions = recentSessions.map(function(file){return 'examples/' + file}) + recentSessions = recentSessions.map(function(file){return dir + '/' + file}) } ipc.send('sessionList',recentSessions,clientId)