()
| 25 | } |
| 26 | |
| 27 | function startHandshake() { |
| 28 | stopHandshake(); |
| 29 | iframe?.contentWindow?.postMessage({ type: 'handshake' }, KEYBOX_REPO_URL); |
| 30 | handshakeInterval = window.setInterval(() => { |
| 31 | iframe?.contentWindow?.postMessage({ type: 'handshake' }, KEYBOX_REPO_URL); |
| 32 | }, 500); |
| 33 | } |
| 34 | |
| 35 | function stopHandshake() { |
| 36 | if (handshakeInterval !== undefined) { |
no test coverage detected