Fix links on nick changes

This commit is contained in:
Eduard Urbach 2018-03-03 19:03:29 +01:00
parent 97120c13f5
commit 33fbe44881

View File

@ -37,7 +37,11 @@ export function save(arn: AnimeNotifier, input: HTMLElement) {
(input as HTMLInputElement).disabled = false (input as HTMLInputElement).disabled = false
} }
return arn.reloadContent() if(apiEndpoint.startsWith("/api/user/") && input.dataset.field === "Nick") {
return arn.reloadPage()
} else {
return arn.reloadContent()
}
}) })
} }