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

Function getEmbedly

3p/embedly.js:51–55  ·  view source on GitHub ↗

* Loads embedly card SDK that is consumed by this 3p integration. * * @param {!Window} global * @param {function()} callback * @visibleForTesting

(global, callback)

Source from the content-addressed store, hash-verified

49 * @visibleForTesting
50 */
51function getEmbedly(global, callback) {
52 loadScript(global, EMBEDLY_SDK_URL, function () {
53 callback();
54 });
55}
56
57/**
58 * Creates embedly card using sdk.

Callers 1

embedlyFunction · 0.85

Calls 2

loadScriptFunction · 0.90
callbackFunction · 0.50

Tested by

no test coverage detected