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

Function installViewerServiceForDoc

src/service/viewer-impl.js:945–952  ·  view source on GitHub ↗
(ampdoc)

Source from the content-addressed store, hash-verified

943 * @param {!./ampdoc-impl.AmpDoc} ampdoc
944 */
945export function installViewerServiceForDoc(ampdoc) {
946 registerServiceBuilderForDoc(
947 ampdoc,
948 'viewer',
949 ViewerImpl,
950 /* opt_instantiate */ true
951 );
952}

Callers 5

test-cid.jsFile · 0.90
test-activity.jsFile · 0.90
test-viewport.jsFile · 0.90

Calls 1

Tested by

no test coverage detected