chore: Clarify usage of window fields in UIWindowManageSessions.js

/puter/src/UI/UIWindowManageSessions.js
   91:41  error  'api_origin' is not defined  no-undef
  122:37  error  'api_origin' is not defined  no-undef
This commit is contained in:
Sam Atkins
2024-05-01 16:58:23 +01:00
parent 2ed258cb69
commit abc70f2e92

View File

@@ -88,7 +88,7 @@ const UIWindowManageSessions = async function UIWindowManageSessions (options) {
return;
}
const resp = await fetch(`${api_origin}/auth/revoke-session`, {
const resp = await fetch(`${window.api_origin}/auth/revoke-session`, {
method: 'POST',
headers: {
Authorization: `Bearer ${puter.authToken}`,
@@ -119,7 +119,7 @@ const UIWindowManageSessions = async function UIWindowManageSessions (options) {
};
const reload_sessions = async () => {
const resp = await fetch(`${api_origin}/auth/list-sessions`, {
const resp = await fetch(`${window.api_origin}/auth/list-sessions`, {
headers: {
Authorization: `Bearer ${puter.authToken}`,
},