From c44e0ca737afffa040f39ca19f656bd2b7f1dacc Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 1 May 2024 16:39:47 +0100 Subject: [PATCH] chore: Clarify usage of window fields in UIWindowFeedback.js /puter/src/UI/UIWindowFeedback.js 79:22 error 'api_origin' is not defined no-undef 84:48 error 'auth_token' is not defined no-undef --- src/UI/UIWindowFeedback.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UI/UIWindowFeedback.js b/src/UI/UIWindowFeedback.js index 5e0b18f7..92ab92a5 100644 --- a/src/UI/UIWindowFeedback.js +++ b/src/UI/UIWindowFeedback.js @@ -76,12 +76,12 @@ async function UIWindowQR(options){ if(message) $(this).prop('disabled', true); $.ajax({ - url: api_origin + "/contactUs", + url: window.api_origin + "/contactUs", type: 'POST', async: true, contentType: "application/json", headers: { - "Authorization": "Bearer "+auth_token + "Authorization": "Bearer "+window.auth_token }, data: JSON.stringify({ message: message,