diff --git a/gui/js/onboarding.window.js b/gui/js/onboarding.window.js index 2b2ad3ce0..3c80552ea 100644 --- a/gui/js/onboarding.window.js +++ b/gui/js/onboarding.window.js @@ -115,7 +115,9 @@ module.exports = class OnboardingWM extends WindowManager { } closeOAuthView() { - this.win.removeBrowserView(this.oauthView) + if (this.oauthView) { + this.win.removeBrowserView(this.oauthView) + } } async create() {