dao-game / peerjs-browser-bug / files / src / index.ts
Branch peerjs-browser-bug · default branch · all branches
index.ts
e46456c2 2022-03-22 Pavel Safronov | 1 | import { showModal } from "./modal"; |
| 2 | ||
| 3 | const doStuff = async () => { | |
| 4 | await showModal({ | |
f2837cac 2022-03-22 Pavel Safronov | 5 | text: "<p>Your current browser is not yet supported.</p>" + |
| 6 | "<p>This PeerJs issue is tracking support in Microsoft Edge and Safari: </p>" + | |
| 7 | "<p><a href=\"https://github.com/peers/peerjs/issues/899\">https://github.com/peers/peerjs/issues/899</a></p>", | |
e46456c2 2022-03-22 Pavel Safronov | 8 | willBackgroundCancel: false |
| 9 | }); | |
| 10 | await showModal({ | |
| 11 | text: 'Another thing!' | |
| 12 | }); | |
| 13 | }; | |
| 14 | doStuff(); |