From b4b82ea478fa8b311d9447448259b0f942e74b01 Mon Sep 17 00:00:00 2001 From: HF Date: Sun, 4 Sep 2022 03:28:27 +0200 Subject: [PATCH] remove ASSET_SERVER config --- README.md | 1 - src/components/ChatMessage.jsx | 6 +----- src/components/LanguageSelect.jsx | 2 +- src/components/LogInArea.jsx | 10 +++++----- src/components/ModWatchtools.jsx | 2 +- src/components/embeds/DirectLinkMedia.jsx | 2 +- src/components/embeds/Matrix.jsx | 2 +- src/components/embeds/Odysee.jsx | 2 +- src/components/embeds/Telegram.jsx | 2 +- src/components/embeds/TikTok.jsx | 2 +- src/components/embeds/Twitter.jsx | 2 +- src/components/embeds/YouTube.jsx | 2 +- src/core/config.js | 2 -- src/ssr/Globe.jsx | 3 +-- src/ssr/Main.jsx | 5 ++--- src/ssr/PopUp.jsx | 5 ++--- 16 files changed, 20 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 068a188..4a99109 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,6 @@ Configuration takes place in the environment variables that are defined in ecosy | Variable | Description | Example | |-------------------|:--------------------------------------|---------------------------| -| ASSET_SERVER | URL for assets | "http://localhost" | | USE_PROXYCHECK | Check users for Proxies | 0 | | PROXYCHECK_KEY | Key for proxycheck.io | "asfas-xcsc-ewef-sdfsd" | | APISOCKET_KEY | Key for API Socket for SpecialAccess™ | "SDfasife3" | diff --git a/src/components/ChatMessage.jsx b/src/components/ChatMessage.jsx index d3bc685..31786fd 100644 --- a/src/components/ChatMessage.jsx +++ b/src/components/ChatMessage.jsx @@ -50,11 +50,7 @@ function ChatMessage({ className="chatflag" alt="" title={country} - src={`${window.ssv.assetserver}/cf/${country}.gif`} - onError={(e) => { - e.target.onerror = null; - e.target.src = './cf/xx.gif'; - }} + src={`/cf/${country}.gif`} />