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

Function getService

src/service-helpers.js:139–142  ·  view source on GitHub ↗
(win, id)

Source from the content-addressed store, hash-verified

137 * @return {T}
138 */
139export function getService(win, id) {
140 win = getTopWindow(win);
141 return getServiceInternal(win, id);
142}
143
144/**
145 * Returns a service for the given id and window (a per-window singleton). But

Callers 15

test-service.jsFile · 0.90
invokeWebWorkerFunction · 0.90
ampWorkerForTestingFunction · 0.90
ampdocServiceForInternalFunction · 0.90
extensionsForInternalFunction · 0.90
index.jsFile · 0.90
performanceForFunction · 0.90
loadPolyfill_Method · 0.90
createHistoryFunction · 0.90

Calls 2

getTopWindowFunction · 0.85
getServiceInternalFunction · 0.85

Tested by

no test coverage detected