fix: don't try to get the api from localhost

This commit is contained in:
Draconizations 2022-04-07 19:05:35 +02:00
parent 7b6749e5c1
commit ee1e5029f9

View File

@ -1,7 +1,7 @@
import axios from 'axios'; import axios from 'axios';
import * as Sentry from '@sentry/browser'; 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 methods = ['get', 'post', 'delete', 'patch', 'put'];
const noop = () => {}; const noop = () => {};