session: adjust editor/reloader to unwrapped session
This commit is contained in:
parent
b9c4c730ea
commit
c8810ebe31
2 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue