MCPcopy Create free account
hub / github.com/ampproject/amphtml / getCustomLogo_

Method getCustomLogo_

extensions/amp-loader/0.1/amp-loader.js:241–255  ·  view source on GitHub ↗

* Returns the custom logo for the element if there is one. * @private * @return {{ * content: (!Element|undefined), * color: (string|undefined), * }}

()

Source from the content-addressed store, hash-verified

239 * }}
240 */
241 getCustomLogo_() {
242 if (this.isAd_()) {
243 return {
244 content: this.getAdsLogo_(),
245 };
246 }
247
248 if (isIframeVideoPlayerComponent(this.element_.tagName)) {
249 return {
250 content: this.getVideoPlayerLogo_(),
251 };
252 }
253
254 return this.element_.createLoaderLogo();
255 }
256
257 /**
258 * @return {!Element} The logo for video players

Callers 1

addLogo_Method · 0.95

Calls 5

isAd_Method · 0.95
getAdsLogo_Method · 0.95
getVideoPlayerLogo_Method · 0.95
createLoaderLogoMethod · 0.80

Tested by

no test coverage detected