From 51411cd3e53820615a8c7f40a18ed8f5dee2b5e9 Mon Sep 17 00:00:00 2001 From: surefire Date: Thu, 5 Apr 2018 05:38:03 +0300 Subject: [PATCH] Check exists settings on destory --- quake-mode@repsac-by.github.com/quakemodeapp.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/quake-mode@repsac-by.github.com/quakemodeapp.js b/quake-mode@repsac-by.github.com/quakemodeapp.js index 56441b4..e640a48 100644 --- a/quake-mode@repsac-by.github.com/quakemodeapp.js +++ b/quake-mode@repsac-by.github.com/quakemodeapp.js @@ -43,8 +43,11 @@ var QuakeModeApp = class { destroy() { this.state = state.DEAD; - this.settings.run_dispose(); - this.settings = null; + + if ( this.settings ) { + this.settings.run_dispose(); + this.settings = null; + } this.win = null; this.app = null;