The new window is not used except by name

This commit is contained in:
Kane York 2015-08-03 15:28:09 -07:00
parent 43756ec8b6
commit 658d49393a
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ const QueryResultComponent = Ember.Component.extend({
let windowName = randomIdShort();
const newWindowContents = "<style>body{font-size:36px;display:flex;justify-content:center;align-items:center;}</style><body>Click anywhere to close this window once the download finishes.<script>window.onclick=function(){window.close()};</script>";
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');