diff --git a/src/client/app/editor/index.js b/src/client/app/editor/index.js index 38a0ecb5..4cb4fed9 100644 --- a/src/client/app/editor/index.js +++ b/src/client/app/editor/index.js @@ -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() } }) diff --git a/src/client/app/ipc/callbacks.js b/src/client/app/ipc/callbacks.js index a0e68f17..52cd7231 100644 --- a/src/client/app/ipc/callbacks.js +++ b/src/client/app/ipc/callbacks.js @@ -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 }