* Returns a promise that is resolved when document is ready. * @param {!Document} doc * @return {!Promise<!Document>}
(doc)
| 88 | * @return {!Promise<!Document>} |
| 89 | */ |
| 90 | function whenDocumentReady(doc) { |
| 91 | return new Promise((resolve) => { |
| 92 | onDocumentReady(doc, resolve); |
| 93 | }); |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * Copyright 2018 The Subscribe with Google Authors. All Rights Reserved. |
no test coverage detected