Fix safari popup resizing

This commit is contained in:
Chi Vinh Le
2017-04-21 00:27:26 +07:00
parent 5b7750f7a5
commit f3f1cc53fe
+5 -4
View File
@@ -63,6 +63,11 @@ export const createUsername = (userId, formData) => dispatch => {
};
export const changeView = view => dispatch => {
dispatch({
type: actions.CHANGE_VIEW,
view
});
switch(view) {
case 'SIGNUP':
window.resizeTo(500, 800);
@@ -73,10 +78,6 @@ export const changeView = view => dispatch => {
default:
window.resizeTo(500, 550);
}
dispatch({
type: actions.CHANGE_VIEW,
view
});
};
export const cleanState = () => ({type: actions.CLEAN_STATE});