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

Function getContainerScript

3p/reddit.js:8–10  ·  view source on GitHub ↗

* Get the correct script for the container. * @param {!Window} global * @param {string} scriptSource The source of the script, different for post and comment embeds.

(global, scriptSource)

Source from the content-addressed store, hash-verified

6 * @param {string} scriptSource The source of the script, different for post and comment embeds.
7 */
8function getContainerScript(global, scriptSource) {
9 loadScript(global, scriptSource, () => {});
10}
11
12/**
13 * Embedly looks for a blockquote with a '-card' suffixed class.

Callers 1

redditFunction · 0.70

Calls 1

loadScriptFunction · 0.90

Tested by

no test coverage detected