MCPcopy Index your code
hub / github.com/ampproject/amphtml / register

Function register

3p/3p.js:41–45  ·  view source on GitHub ↗
(id, draw)

Source from the content-addressed store, hash-verified

39 * @param {ThirdPartyFunctionDef} draw Function that draws the 3p integration.
40 */
41export function register(id, draw) {
42 const registrations = getRegistrations();
43 devAssert(!registrations[id], 'Double registration %s', id);
44 registrations[id] = draw;
45}
46
47/**
48 * Execute the 3p integration with the given id.

Callers 15

integration.jsFile · 0.90
myoffrz.jsFile · 0.90
tagon.jsFile · 0.90
adop.jsFile · 0.90
sunmedia.jsFile · 0.90
adreactor.jsFile · 0.90
fusion.jsFile · 0.90
aduptech.jsFile · 0.90
yektanet.jsFile · 0.90
rubicon.jsFile · 0.90
kixer.jsFile · 0.90

Calls 2

devAssertFunction · 0.90
getRegistrationsFunction · 0.85

Tested by

no test coverage detected