mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-18 19:07:08 -04:00
Move Old Cloud Domains 2 New Domain
This commit is contained in:
parent
f51340778d
commit
eacc527b1a
3 changed files with 11 additions and 20 deletions
|
@ -25,7 +25,15 @@ import { Logger } from "./Logger";
|
|||
import { openModal } from "./modal";
|
||||
|
||||
export const cloudLogger = new Logger("Cloud", "#39b7e0");
|
||||
export const getCloudUrl = () => new URL(Settings.cloud.url);
|
||||
export const cloudUrl = () => {
|
||||
if (Settings.cloud.url.includes("https://equicord.thororen.com") || Settings.cloud.url.includes("https://cloud.equicord.fyi")) {
|
||||
Settings.cloud.url = "https://cloud.equicord.org";
|
||||
Settings.cloud.authenticated = false;
|
||||
deauthorizeCloud();
|
||||
}
|
||||
return Settings.cloud.url;
|
||||
};
|
||||
export const getCloudUrl = () => new URL(cloudUrl());
|
||||
|
||||
const cloudUrlOrigin = () => getCloudUrl().origin;
|
||||
const getUserId = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue