[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> </Accordion>
<Divider /> {isElectron() && (
<Group> <>
<Switch <Divider />
checked={ignoreCORS === 'true'} <Group>
label="Ignore CORS (requires restart)" <Switch
onChange={handleUpdateIgnoreCORS} checked={ignoreCORS === 'true'}
/> label="Ignore CORS (requires restart)"
</Group> onChange={handleUpdateIgnoreCORS}
<Group> />
<Switch </Group>
checked={ignoreSSL === 'true'} <Group>
label="Ignore SSL (requires restart)" <Switch
onChange={handleUpdateIgnoreSSL} checked={ignoreSSL === 'true'}
/> label="Ignore SSL (requires restart)"
</Group> onChange={handleUpdateIgnoreSSL}
/>
</Group>
</>
)}
</Stack> </Stack>
</> </>
); );