| 528 | |
| 529 | class Snapdrop { |
| 530 | constructor() { |
| 531 | const server = new ServerConnection(); |
| 532 | const peers = new PeersManager(server); |
| 533 | const peersUI = new PeersUI(); |
| 534 | Events.on('load', e => { |
| 535 | const receiveDialog = new ReceiveDialog(); |
| 536 | const sendTextDialog = new SendTextDialog(); |
| 537 | const receiveTextDialog = new ReceiveTextDialog(); |
| 538 | const toast = new Toast(); |
| 539 | const notifications = new Notifications(); |
| 540 | const networkStatusUI = new NetworkStatusUI(); |
| 541 | const webShareTargetUI = new WebShareTargetUI(); |
| 542 | }); |
| 543 | } |
| 544 | } |
| 545 | |
| 546 | const snapdrop = new Snapdrop(); |