diff --git a/src/public/src/api/APIRequest.tsx b/src/public/src/api/APIRequest.tsx index 9fdf171..45eeb86 100644 --- a/src/public/src/api/APIRequest.tsx +++ b/src/public/src/api/APIRequest.tsx @@ -7,7 +7,4 @@ export const APIRequest = (url:string, body?:object) => { 'Accept': 'application/json' } }).then(e => e.json()); -} - - -(globalThis as any)['APIRequest'] = APIRequest; \ No newline at end of file +} \ No newline at end of file diff --git a/src/public/src/api/SendMail.tsx b/src/public/src/api/SendMail.tsx index 70437e2..ff3d421 100644 --- a/src/public/src/api/SendMail.tsx +++ b/src/public/src/api/SendMail.tsx @@ -2,7 +2,4 @@ import { APIRequest } from "./APIRequest"; export const sendMail = (name:string, email:string, message:string) => APIRequest('mail/send', { name, email, message -}).then(e => e.body); - -///@ts-ginore -(globalThis as any)['sendMail' as any] = sendMail as any; \ No newline at end of file +}).then(e => e.body); \ No newline at end of file