From 733eedd12f7452d58e263bffd2649ea2ff627540 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Fri, 26 Apr 2024 13:19:43 -0400 Subject: [PATCH] Change logout to a GET request --- src/ui/menu-ui-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/menu-ui-handler.ts b/src/ui/menu-ui-handler.ts index 8444d8aa5..03d93699e 100644 --- a/src/ui/menu-ui-handler.ts +++ b/src/ui/menu-ui-handler.ts @@ -311,7 +311,7 @@ export default class MenuUiHandler extends MessageUiHandler { case MenuOptions.LOG_OUT: success = true; const doLogout = () => { - Utils.apiPost('account/logout', undefined, undefined, true).then(res => { + Utils.apiFetch('account/logout', true).then(res => { if (!res.ok) console.error(`Log out failed (${res.status}: ${res.statusText})`); Utils.setCookie(Utils.sessionIdKey, '');