From 658d49393aee39f07c3e9d602c58d83490cce91b Mon Sep 17 00:00:00 2001 From: Kane York Date: Mon, 3 Aug 2015 15:28:09 -0700 Subject: [PATCH] The new window is not used except by name --- assets/javascripts/discourse/components/query-result.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/discourse/components/query-result.js.es6 b/assets/javascripts/discourse/components/query-result.js.es6 index 760b5a2..e4e02c9 100644 --- a/assets/javascripts/discourse/components/query-result.js.es6 +++ b/assets/javascripts/discourse/components/query-result.js.es6 @@ -106,7 +106,7 @@ const QueryResultComponent = Ember.Component.extend({ let windowName = randomIdShort(); const newWindowContents = "Click anywhere to close this window once the download finishes."; - let newWindow = window.open('data:text/html;base64,' + btoa(newWindowContents), windowName); + const _ = window.open('data:text/html;base64,' + btoa(newWindowContents), windowName); let form = document.createElement("form"); form.setAttribute('id', 'query-download-result');