MCPcopy
hub / github.com/ampproject/amphtml / user

Function user

src/utils/log.js:567–580  ·  view source on GitHub ↗
(opt_element)

Source from the content-addressed store, hash-verified

565 * @return {!Log}
566 */
567export function user(opt_element) {
568 // logs.user must exist first to perform the logs.user.win check below
569 if (!logs.user) {
570 logs.user = getUserLogger(USER_ERROR_SENTINEL);
571 }
572
573 if (isFromEmbed(logs.user.win, opt_element)) {
574 return (
575 logs.userForEmbed ||
576 (logs.userForEmbed = getUserLogger(USER_ERROR_EMBED_SENTINEL))
577 );
578 }
579 return logs.user;
580}
581
582/**
583 * Getter for user logger

Callers 15

input.jsFile · 0.90
helloFunction · 0.90
helloAgainFunction · 0.90
methodMethod · 0.90
output.mjsFile · 0.90
helloFunction · 0.90
helloAgainFunction · 0.90
methodMethod · 0.90
input.jsFile · 0.90
helloFunction · 0.90
helloAgainFunction · 0.90
methodMethod · 0.90

Calls 2

getUserLoggerFunction · 0.85
isFromEmbedFunction · 0.85

Tested by

no test coverage detected