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

Function getGistJs

3p/github.js:16–20  ·  view source on GitHub ↗

* Get the correct script for the gist. * * Use writeScript: Failed to execute 'write' on 'Document': It isn't possible * to write into a document from an asynchronously-loaded external script unless * it is explicitly opened. * * @param {!Window} global * @param {string} scriptSource The sour

(global, scriptSource, cb)

Source from the content-addressed store, hash-verified

14 * @param {function()} cb
15 */
16function getGistJs(global, scriptSource, cb) {
17 writeScript(global, scriptSource, function () {
18 cb();
19 });
20}
21
22/**
23 * @param {!Window} global

Callers 1

githubFunction · 0.85

Calls 2

writeScriptFunction · 0.90
cbFunction · 0.50

Tested by

no test coverage detected