Various QoL fixes for Desktop App (#2999)
* Some ESLint fixes * Add login/logout signal to API, clear mentions on logout and flush cookies on login/logout * Fix issue where local and HTTP-only servers would not validate correctly * Reduce noise of renderer logging, adjust a few local renderer logs to be louder when needed * Fallback to beginning of hostname for servers that don't change the site name * Fix Save Image crash * Update the name for insecure servers too * Fix test * Fix lint * Reduce repetition
This commit is contained in:
@@ -56,7 +56,7 @@ class Root extends React.PureComponent<Record<string, never>, State> {
|
||||
const configRequest = await window.desktop.getConfiguration() as CombinedConfig;
|
||||
return configRequest;
|
||||
} catch (err: any) {
|
||||
console.log(`there was an error with the config: ${err}`);
|
||||
console.error(`there was an error with the config: ${err}`);
|
||||
if (exitOnError) {
|
||||
window.desktop.quit(`unable to load configuration: ${err}`, err.stack);
|
||||
}
|
||||
|
Reference in New Issue
Block a user