Commit 43ff9c90 authored by rocosen's avatar rocosen

1

parent c6f0cf48
......@@ -24,7 +24,7 @@ class AppUpdater {
autoUpdater.checkForUpdatesAndNotify();
}
}
let tray: Tray | null = null;
let tray: Tray | null = null;
let mainWindow: BrowserWindow | null = null;
let siteWindown: BrowserWindow | null = null;
let homeWindown: BrowserWindow | null = null;
......
......@@ -66,11 +66,9 @@ export default (props) => {
const [passwordError, setPasswordError] = useState(false);
useEffect(() => {
if (
localStorage.getItem(Constants.TOKEN_KEY)
) {
if (localStorage.getItem(Constants.TOKEN_KEY)) {
getUserData();
}else{
} else {
electron.ipcRenderer.send('openLogin-windown');
}
if (!localStorage.getItem('Preferences')) {
......@@ -131,7 +129,7 @@ export default (props) => {
);
navigate('/home');
electron.ipcRenderer.send('resize-home');
}else{
} else {
electron.ipcRenderer.send('openLogin-windown');
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment