From 1a117e3f787b4306d1b98f011cc4269400868b13 Mon Sep 17 00:00:00 2001 From: Navdeep Singh Date: Thu, 22 Mar 2018 17:54:42 -0700 Subject: [PATCH] Fix #2125 Prevent multiple settings modals --- js/views/inbox_view.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/views/inbox_view.js b/js/views/inbox_view.js index 1f65dce00..ceb359894 100644 --- a/js/views/inbox_view.js +++ b/js/views/inbox_view.js @@ -231,6 +231,9 @@ window.location.reload(); }, showSettings() { + if (this.$el.find('.settings').length) { + return; + } const view = new Whisper.SettingsView(); view.$el.appendTo(this.el); },