mirror of
https://github.com/janishutz/MusicPlayer.git
synced 2026-09-10 14:25:24 +02:00
feat: basic design of share page, various small fixes
This commit is contained in:
@@ -18,13 +18,24 @@
|
||||
store.isAuth = await sdk.verify();
|
||||
|
||||
if ( store.isAuth )
|
||||
router.push( '/app' );
|
||||
isAuthorizedHandler();
|
||||
|
||||
isLoggingIn.value = false;
|
||||
|
||||
// TODO: Logout button
|
||||
} );
|
||||
|
||||
const isAuthorizedHandler = () => {
|
||||
if ( localStorage.getItem( 'close-tab' ) === 'true' ) {
|
||||
localStorage.setItem( 'login-ok', 'true' );
|
||||
localStorage.removeItem( 'close-tab' );
|
||||
|
||||
return window.close();
|
||||
}
|
||||
|
||||
router.push( '/app' );
|
||||
};
|
||||
|
||||
const login = () => {
|
||||
if ( isLoggingIn.value ) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user