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

Method open

third_party/subscriptions-project/swg.js:11957–11960  ·  view source on GitHub ↗

* Opens the notification toast. * @return {!Promise}

()

Source from the content-addressed store, hash-verified

11955 * @return {!Promise}
11956 */
11957 open() {
11958 this.doc_.getBody().appendChild(this.iframe_); // Fires onload.
11959 return this.buildToast_();
11960 }
11961
11962 /**
11963 * Builds the content of the iframe. On load, animates the toast.

Callers 15

getAmpConfigFunction · 0.45
test-service.jsFile · 0.45
test-viewport.jsFile · 0.45
makeChildIframeDocWriteFunction · 0.45
createFixtureIframeFunction · 0.45
CnFunction · 0.45
openMethod · 0.45
openDialogMethod · 0.45
maybeShowToast_Method · 0.45
createXhrRequestFunction · 0.45

Calls 2

buildToast_Method · 0.95
getBodyMethod · 0.45

Tested by

no test coverage detected