fix: Server config showing in web view
This commit is contained in:
1 parent
7de387b987
commit
1fea3568b1
1 file changed
+5
@@ -596,6 +596,11 @@ export function Auth({
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const checkServerConfig = async () => {
|
const checkServerConfig = async () => {
|
||||||
|
if (isInElectronWebView()) {
|
||||||
|
setShowServerConfig(false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (isElectron()) {
|
if (isElectron()) {
|
||||||
try {
|
try {
|
||||||
const config = await getServerConfig();
|
const config = await getServerConfig();
|
||||||
|
|||||||
Reference in new issue
Block a user