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

Method getPropensity

third_party/subscriptions-project/swg.js:18647–18658  ·  view source on GitHub ↗

@override

(type)

Source from the content-addressed store, hash-verified

18645
18646 /** @override */
18647 getPropensity(type) {
18648 if (type && !Object.values(PropensityType).includes(type)) {
18649 throw new Error('Invalid propensity type requested');
18650 }
18651 if (!type) {
18652 type = PropensityType.GENERAL;
18653 }
18654 return this.propensityServer_.getPropensity(
18655 this.win_.document.referrer,
18656 type
18657 );
18658 }
18659
18660 /** @override */
18661 sendEvent(userEvent) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected