From 06baa07da4746645a00c9880368af85946160609 Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Sat, 29 Sep 2018 23:14:20 +0300 Subject: [PATCH] fix frontend build issues --- web/app/components/user-info/user-info.jsx | 1 + web/app/remark.js | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/web/app/components/user-info/user-info.jsx b/web/app/components/user-info/user-info.jsx index 155f8863..059baae0 100644 --- a/web/app/components/user-info/user-info.jsx +++ b/web/app/components/user-info/user-info.jsx @@ -4,6 +4,7 @@ import { connect } from 'preact-redux'; import api from 'common/api'; import LastCommentsList from './last-comments-list'; +import { getHandleClickProps } from 'common/accessibility'; import Avatar from 'components/avatar-icon'; import { fetchComments, completeFetchComments } from './user-info.actions'; import { getUserComments, getIsLoadingUserComments } from './user-info.getters'; diff --git a/web/app/remark.js b/web/app/remark.js index 840844d8..74f0a272 100644 --- a/web/app/remark.js +++ b/web/app/remark.js @@ -50,6 +50,11 @@ function init() { picture: params.picture, }; store.set('user', user); + const onClose = () => { + if (window.parent) { + window.parent.postMessage(JSON.stringify({ isUserInfoShown: false }), '*'); + } + }; render(