MCPcopy Create free account
hub / github.com/firebase/codelab-friendlychat-web / addSizeToGoogleProfilePic

Function addSizeToGoogleProfilePic

web/src/index.js:293–298  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

291
292 // Adds a size to Google Profile pics URLs.
293 function addSizeToGoogleProfilePic(url) {
294 if (url.indexOf('googleusercontent.com') !== -1 && url.indexOf('?') === -1) {
295 return url + '?sz=150';
296 }
297 return url;
298 }
299
300 // A loading image URL.
301 var LOADING_IMAGE_URL = 'https://www.google.com/images/spin-32.gif?a';

Callers 2

authStateObserverFunction · 0.70
displayMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected