1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +07:00

fixed boris caption

This commit is contained in:
Fedor Katurov 2019-11-12 16:14:58 +07:00
parent dac27ca9d8
commit 32a2a0567e
5 changed files with 17 additions and 3 deletions

View file

@ -84,7 +84,7 @@ function* refreshUser() {
function* checkUserSaga({ key }: RehydrateAction) {
if (key !== 'auth') return;
yield call(refreshUser);
yield put(authOpenProfile('gvorcek'));
// yield put(authOpenProfile('gvorcek'));
}
function* gotPostMessageSaga({ token }: ReturnType<typeof gotAuthPostMessage>) {

View file

@ -47,7 +47,11 @@ export const sagaMiddleware = createSagaMiddleware();
export const history = createBrowserHistory();
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 }, '*');
}