server: relative image request resolution (to session-path)

This commit is contained in:
bordun 2019-06-26 11:02:45 +02:00
parent bee8b7d814
commit e951b4bc0e
5 changed files with 35 additions and 8 deletions

View file

@ -88,6 +88,7 @@ module.exports = {
module.exports.fileRead(data, clientId, true, (result)=>{
ipc.clients[clientId].sessionPath = data.path // for resolving local file requests
ipc.send('sessionOpen', {path: data.path, session: result}, clientId)
})