From ff28d2919b11b5567bc97c0963a9b4c0a55ab439 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 1 May 2024 16:30:36 +0100 Subject: [PATCH] chore: Clarify usage of window fields in UIWindowChangeUsername.js /puter/src/UI/UIWindowChangeUsername.js 97:18 error 'api_origin' is not defined no-undef 101:44 error 'auth_token' is not defined no-undef --- src/UI/UIWindowChangeUsername.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UI/UIWindowChangeUsername.js b/src/UI/UIWindowChangeUsername.js index dadf9d01..e901c10c 100644 --- a/src/UI/UIWindowChangeUsername.js +++ b/src/UI/UIWindowChangeUsername.js @@ -94,11 +94,11 @@ async function UIWindowChangeUsername(options){ $(el_window).find('.new-username').attr('disabled', true); $.ajax({ - url: api_origin + "/change_username", + url: window.api_origin + "/change_username", type: 'POST', async: true, headers: { - "Authorization": "Bearer "+auth_token + "Authorization": "Bearer "+window.auth_token }, contentType: "application/json", data: JSON.stringify({