From 33fbe448813bcf22067c59432159f269935a3a81 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sat, 3 Mar 2018 19:03:29 +0100 Subject: [PATCH] Fix links on nick changes --- scripts/Actions/Serialization.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/Actions/Serialization.ts b/scripts/Actions/Serialization.ts index 9a600db8..bd3e6f07 100644 --- a/scripts/Actions/Serialization.ts +++ b/scripts/Actions/Serialization.ts @@ -37,7 +37,11 @@ export function save(arn: AnimeNotifier, input: HTMLElement) { (input as HTMLInputElement).disabled = false } - return arn.reloadContent() + if(apiEndpoint.startsWith("/api/user/") && input.dataset.field === "Nick") { + return arn.reloadPage() + } else { + return arn.reloadContent() + } }) }