examples: use absolute path otherwise it doesn't work
This commit is contained in:
parent
d38b26ac6d
commit
e6abe5b58c
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue