session: adjust editor/reloader to unwrapped session

This commit is contained in:
bordun 2018-10-31 13:49:45 +01:00
parent 6dc75802c5
commit dafcc17cbd
2 changed files with 2 additions and 2 deletions

View file

@ -219,7 +219,7 @@ var Editor = class Editor {
if (this.enabled) {
this.disable()
} else {
if (sessionManager.session.length) this.enable()
if (sessionManager.session.type) this.enable()
}
})

View file

@ -103,7 +103,7 @@ module.exports = {
// disable editor's warning
window.onbeforeunload = null
if (!session.session.length) {
if (!session.session.type) {
window.location.href = window.location.href
return
}