From ee1e5029f9df66e1d148b7607da17ca3d0e08cee Mon Sep 17 00:00:00 2001 From: Draconizations Date: Thu, 7 Apr 2022 19:05:35 +0200 Subject: [PATCH] fix: don't try to get the api from localhost --- src/api/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/index.ts b/src/api/index.ts index 7b0ab795..260bb0b2 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1,7 +1,7 @@ import axios from 'axios'; import * as Sentry from '@sentry/browser'; -const baseUrl = () => window.location.origin.includes("localhost") ? "http://localhost:5000" : localStorage.isBeta ? "https://api.beta.pluralkit.me" : "https://api.pluralkit.me"; +const baseUrl = () => localStorage.isBeta ? "https://api.beta.pluralkit.me" : "https://api.pluralkit.me"; const methods = ['get', 'post', 'delete', 'patch', 'put']; const noop = () => {};