mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-28 17:27:50 +01:00
close window and styling
This commit is contained in:
parent
b3aaf8063c
commit
6ab4641812
@ -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();
|
||||
}
|
||||
});
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user