[bugfix]: remove ignore CORS/SSL switches from web version (#305)

This commit is contained in:
Kendall Garner 2023-10-17 13:21:36 +00:00 committed by GitHub
parent ac7ec133db
commit f4f73289c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,21 +98,25 @@ export const ServerList = () => {
);
})}
</Accordion>
<Divider />
<Group>
<Switch
checked={ignoreCORS === 'true'}
label="Ignore CORS (requires restart)"
onChange={handleUpdateIgnoreCORS}
/>
</Group>
<Group>
<Switch
checked={ignoreSSL === 'true'}
label="Ignore SSL (requires restart)"
onChange={handleUpdateIgnoreSSL}
/>
</Group>
{isElectron() && (
<>
<Divider />
<Group>
<Switch
checked={ignoreCORS === 'true'}
label="Ignore CORS (requires restart)"
onChange={handleUpdateIgnoreCORS}
/>
</Group>
<Group>
<Switch
checked={ignoreSSL === 'true'}
label="Ignore SSL (requires restart)"
onChange={handleUpdateIgnoreSSL}
/>
</Group>
</>
)}
</Stack>
</>
);