diff --git a/crates/ericrfb-frontend/src/main.ts b/crates/ericrfb-frontend/src/main.ts index 6e3efb3..bbc067f 100644 --- a/crates/ericrfb-frontend/src/main.ts +++ b/crates/ericrfb-frontend/src/main.ts @@ -1,5 +1,29 @@ import './style.css' import { showLogin } from './login' +import { mountShell } from './shell' const app = document.getElementById('app')! -showLogin(app) + +// Try to resume a session from stored credentials +const user = sessionStorage.getItem('blekin_user') +const pass = sessionStorage.getItem('blekin_pass') + +if (user && pass) { + app.innerHTML = '