MCPcopy Create free account
hub / github.com/ampproject/amphtml / isSingleDoc

Method isSingleDoc

src/service/ampdoc-impl.js:90–93  ·  view source on GitHub ↗

* Whether the runtime in the single-doc mode. Alternative is the shadow-doc * mode that supports multiple documents per a single window. * @return {boolean}

()

Source from the content-addressed store, hash-verified

88 * @return {boolean}
89 */
90 isSingleDoc() {
91 // TODO(#22733): remove when ampdoc-fie is launched.
92 return !!this.singleDoc_;
93 }
94
95 /**
96 * Returns the document in the single-doc mode. In a multi-doc mode, an

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected