From 49cdc983867098bdbef708c79f5ffa99fb03fef1 Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 4 Apr 2017 18:15:22 -0700 Subject: [PATCH] Fix lightbox --- 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 844db9fb0..59f396d13 100644 --- a/js/views/attachment_view.js +++ b/js/views/attachment_view.js @@ -248,7 +248,7 @@ templateName: 'lightbox', className: 'modal lightbox', initialize: function() { - this.window = extension.windows.getViews()[0]; + this.window = window; this.$document = $(this.window.document); this.listener = this.onkeyup.bind(this); this.$document.on('keyup', this.listener);