mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-31 17:57:43 +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);
|
navigator.msSaveBlob(blob, msg.data.fileName);
|
||||||
} else {
|
} else {
|
||||||
const a = document.createElement('a');
|
const a = document.createElement('a');
|
||||||
a.href = URL.createObjectURL(msg.data.blob);
|
a.href = URL.createObjectURL(blob);
|
||||||
a.download = msg.data.fileName;
|
a.download = msg.data.fileName;
|
||||||
document.body.appendChild(a);
|
document.body.appendChild(a);
|
||||||
a.click();
|
a.click();
|
||||||
@ -27,6 +27,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
document.querySelector('#dl-message').remove();
|
window.close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title></title>
|
<title>Downloading File</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body style="padding: 30px; text-align: center; font-family: Arial; font-size: 18px;">
|
||||||
<div id="dl-message">Downloading...</div>
|
<div id="dl-message">Downloading...</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user