Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
billing: Remove success message from URL after being displayed.
Aman Agrawal5aec31cf991e
diff --git a/web/src/billing/billing.ts b/web/src/billing/billing.tsindex 389baa69801..8c383784d40 100644--- a/web/src/billing/billing.ts+++ b/web/src/billing/billing.ts@@ -70,7 +70,17 @@ export function create_update_next_cycle_license_request(): void {);}+function remove_unused_get_parameters(): void {+ // Remove `success_message` as get parameter from URL to avoid+ // it being displayed repeatedly on reloads.+ const url = new URL(window.location.href);+ url.searchParams.delete("success_message");+ window.history.replaceState(null, "", url.toString());+}+export function initialize(): void {+ remove_unused_get_parameters();+$("#update-card-button").on("click", (e) => {$("#update-card-button .billing-button-text").text("");$("#update-card-button .loader").show();