Fix: Settings refresh() lädt auch frischen /me-State, SW by-v557
This commit is contained in:
parent
97154be246
commit
105262eff3
3 changed files with 10 additions and 3 deletions
|
|
@ -64,8 +64,15 @@ window.Page_settings = (() => {
|
|||
}
|
||||
}
|
||||
|
||||
function refresh() {
|
||||
async function refresh() {
|
||||
_render();
|
||||
if (_appState?.user) {
|
||||
try {
|
||||
const fresh = await API.auth.me();
|
||||
Object.assign(_appState.user, fresh);
|
||||
_render();
|
||||
} catch {}
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue