Fix #2125 Prevent multiple settings modals

This commit is contained in:
Navdeep Singh 2018-03-22 17:54:42 -07:00 committed by Scott Nonnenberg
parent d520ba3b38
commit 1a117e3f78

View file

@ -231,6 +231,9 @@
window.location.reload(); window.location.reload();
}, },
showSettings() { showSettings() {
if (this.$el.find('.settings').length) {
return;
}
const view = new Whisper.SettingsView(); const view = new Whisper.SettingsView();
view.$el.appendTo(this.el); view.$el.appendTo(this.el);
}, },