From dafcc17cbd05b71c26978fa73d34c98aa9881f55 Mon Sep 17 00:00:00 2001 From: bordun Date: Wed, 31 Oct 2018 13:49:45 +0100 Subject: [PATCH] session: adjust editor/reloader to unwrapped session --- src/client/app/editor/index.js | 2 +- src/client/app/ipc/callbacks.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }