fix: don't try to get the api from localhost
This commit is contained in:
parent
7b6749e5c1
commit
ee1e5029f9
@ -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 = () => {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user