mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-11 00:19:20 +00:00
Remove md5.js dependency
Switch to the built-in WebCrypto APIs for computing identicon hashes.
This commit is contained in:
parent
9117095764
commit
39106d440a
5 changed files with 24 additions and 415 deletions
|
|
@ -73,9 +73,11 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
document.querySelectorAll("img.identicon").forEach(function (e, i) {
|
||||
e.src = identicon(e.dataset.src);
|
||||
});
|
||||
(async () => {
|
||||
for (let e of document.querySelectorAll("img.identicon")) {
|
||||
e.src = await identicon(e.dataset.src);
|
||||
}
|
||||
})();
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function(event) {
|
||||
$('#orgs-table').DataTable({
|
||||
|
|
@ -87,4 +89,4 @@
|
|||
]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue