From 8a153e942e416b607df3c978afcd24a099cc2f5a Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 30 Jun 2016 16:56:28 -0700 Subject: [PATCH] Fix lightbox // FREEBIE --- js/views/attachment_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/views/attachment_view.js b/js/views/attachment_view.js index 522cf17b9..f00005f62 100644 --- a/js/views/attachment_view.js +++ b/js/views/attachment_view.js @@ -132,7 +132,7 @@ templateName: 'lightbox', className: 'modal lightbox', initialize: function() { - this.window = extension.windows.getWindow(); + this.window = extension.windows.getViews()[0]; this.$document = $(this.window.document); this.listener = this.onkeyup.bind(this); this.$document.on('keyup', this.listener);