close window and styling

This commit is contained in:
Kyle Spearrin 2018-01-15 10:13:02 -05:00
parent b3aaf8063c
commit 6ab4641812
2 changed files with 4 additions and 4 deletions

View File

@ -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();
}
});

View File

@ -1,10 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
<title>Downloading File</title>
<meta charset="utf-8" />
</head>
<body>
<body style="padding: 30px; text-align: center; font-family: Arial; font-size: 18px;">
<div id="dl-message">Downloading...</div>
</body>
</html>