server: relative image request resolution (to session-path)
This commit is contained in:
parent
bee8b7d814
commit
e951b4bc0e
5 changed files with 35 additions and 8 deletions
|
|
@ -35,6 +35,8 @@ class Ipc extends EventEmitter {
|
|||
this.socket.send('["pong"]')
|
||||
})
|
||||
|
||||
document.cookie = 'client_id=' + uuid
|
||||
|
||||
try {
|
||||
this.open()
|
||||
} catch(e) {
|
||||
|
|
@ -42,6 +44,7 @@ class Ipc extends EventEmitter {
|
|||
console.log(e)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
init() {
|
||||
|
|
@ -110,7 +113,7 @@ class Ipc extends EventEmitter {
|
|||
id: 'ipc_state',
|
||||
duration: Infinity
|
||||
})
|
||||
|
||||
|
||||
this.disconnected = true
|
||||
|
||||
clearTimeout(this.reconnect)
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ var SessionManager = class SessionManager {
|
|||
loader.close()
|
||||
new Popup({title: locales('session_parsingerror'), content: err.message, icon: 'exclamation-triangle', closable:true})
|
||||
this.lock = false
|
||||
ipc.send('sessionSetPath', {path: this.sessionPath})
|
||||
throw err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue