Load fonts using FontFaceObserver

This commit is contained in:
Ken-Håvard Lieng 2017-05-12 10:51:37 +02:00
parent 4ee035766b
commit 9bc518fbe9
8 changed files with 69 additions and 63 deletions

View file

@ -74,12 +74,12 @@ export function fetchMessages() {
};
}
export function updateMessageHeight() {
return (dispatch, getState) => dispatch({
export function updateMessageHeight(wrapWidth, charWidth) {
return {
type: actions.UPDATE_MESSAGE_HEIGHT,
wrapWidth: getState().environment.get('wrapWidth'),
charWidth: getState().environment.get('charWidth')
});
wrapWidth,
charWidth
};
}
export function sendMessage(content, to, server) {