From d133fc5c28791c57b2e8d44ca34a8d1fda2c642d Mon Sep 17 00:00:00 2001 From: Benoit Schweblin Date: Sat, 24 Mar 2018 17:04:15 +0000 Subject: [PATCH] Fixed user image sharpness --- src/services/providers/helpers/googleHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/providers/helpers/googleHelper.js b/src/services/providers/helpers/googleHelper.js index 3d1e9e8a..fea4bfe0 100644 --- a/src/services/providers/helpers/googleHelper.js +++ b/src/services/providers/helpers/googleHelper.js @@ -189,7 +189,7 @@ export default { store.commit('userInfo/addItem', { id: res.body.id, name: res.body.displayName, - imageUrl: res.body.image.url, + imageUrl: (res.body.image.url || '').replace(/\bsz?=\d+$/, 'sz=40'), }); return res.body; });