From 6ab46418127f5f8cfaafd24ff5708a7b109c4902 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 15 Jan 2018 10:13:02 -0500 Subject: [PATCH] close window and styling --- src/downloader/downloader.ts | 4 ++-- src/downloader/index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/downloader/downloader.ts b/src/downloader/downloader.ts index eb57e41c1e..05eaa5d257 100644 --- a/src/downloader/downloader.ts +++ b/src/downloader/downloader.ts @@ -19,7 +19,7 @@ document.addEventListener('DOMContentLoaded', () => { navigator.msSaveBlob(blob, msg.data.fileName); } else { const a = document.createElement('a'); - a.href = URL.createObjectURL(msg.data.blob); + a.href = URL.createObjectURL(blob); a.download = msg.data.fileName; document.body.appendChild(a); a.click(); @@ -27,6 +27,6 @@ document.addEventListener('DOMContentLoaded', () => { } } - document.querySelector('#dl-message').remove(); + window.close(); } }); diff --git a/src/downloader/index.html b/src/downloader/index.html index 1c53c9570c..c9c5680fac 100644 --- a/src/downloader/index.html +++ b/src/downloader/index.html @@ -1,10 +1,10 @@  - + Downloading File - +
Downloading...