0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-06-15 18:38:21 +02:00

Merge branch 'BlackDex-fix-admin-repost'

This commit is contained in:
Daniel García 2022-12-04 23:16:54 +01:00
commit 06189a58fe
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A

View file

@ -32,7 +32,11 @@
<script>
'use strict';
function reload() { window.location.reload(); }
function reload() {
// Reload the page by setting the exact same href
// Using window.location.reload() could cause a repost.
window.location = window.location.href;
}
function msg(text, reload_page = true) {
text && alert(text);
reload_page && reload();