Usermanager: export api keys reload issue on Safari. closes https://github.com/opnsense/core/issues/4706

This probably doesn't win a beauty contest, but it seems like reloading the page instantly causes issues on Safari these days.
This commit is contained in:
Ad Schellevis 2021-02-15 18:40:30 +01:00
parent 91d6fa9dab
commit 73ffa7b1ab

View File

@ -508,9 +508,9 @@ $( document ).ready(function() {
$('#downloadFile').ready(function() {
$('#downloadFile').get(0).click();
// reload form after download
setTimeout(window.location.reload.bind(window.location), 100);
});
// reload form
location.reload();
}
},'json');
});