From e2a2165d9ccf5eab27b2d6da3b33d8199fb857a9 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Thu, 26 Apr 2018 16:49:10 -0400 Subject: [PATCH] Remove lightbox on unload --- js/views/conversation_view.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/views/conversation_view.js b/js/views/conversation_view.js index aa5c738ec592..4a63737f7e21 100644 --- a/js/views/conversation_view.js +++ b/js/views/conversation_view.js @@ -282,6 +282,9 @@ if (this.quoteView) { this.quoteView.remove(); } + if (this.lightboxView) { + this.lightboxView.remove(); + } if (this.panels && this.panels.length) { for (let i = 0, max = this.panels.length; i < max; i += 1) { const panel = this.panels[i];