mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
notification menu
This commit is contained in:
parent
6c1f8967e8
commit
9b0c3dd1fb
20 changed files with 371 additions and 39 deletions
|
@ -29,7 +29,7 @@ import { gotAuthPostMessage, authOpenProfile } from './auth/actions';
|
|||
|
||||
const authPersistConfig: PersistConfig = {
|
||||
key: 'auth',
|
||||
whitelist: ['token', 'user'],
|
||||
whitelist: ['token', 'user', 'updates'],
|
||||
storage,
|
||||
};
|
||||
|
||||
|
@ -50,8 +50,6 @@ history.listen(({ pathname }) => {
|
|||
console.log({ pathname });
|
||||
|
||||
if (pathname.match(/~([\wа-яА-Я]+)/)) {
|
||||
console.log('hi!', pathname.match(/~([\wа-яА-Я]+)/));
|
||||
|
||||
const [, username] = pathname.match(/~([\wа-яА-Я]+)/);
|
||||
window.postMessage({ type: 'username', username }, '*');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue