mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-12-04 05:54:48 +01:00
Merge branch 'BlackDex-fix-admin-repost'
This commit is contained in:
commit
06189a58fe
1 changed files with 5 additions and 1 deletions
|
@ -32,7 +32,11 @@
|
||||||
<script>
|
<script>
|
||||||
'use strict';
|
'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) {
|
function msg(text, reload_page = true) {
|
||||||
text && alert(text);
|
text && alert(text);
|
||||||
reload_page && reload();
|
reload_page && reload();
|
||||||
|
|
Loading…
Reference in a new issue