Add WebTorrent shares to add.html page

This commit is contained in:
Alexey Khit
2023-03-19 17:14:34 +03:00
parent 7c79c1ff26
commit d84efd1238
2 changed files with 26 additions and 5 deletions
+13
View File
@@ -218,5 +218,18 @@
})
</script>
<button id="webtorrent">WebTorrent Shares</button>
<div class="module">
<table id="webtorrent-table"></table>
</div>
<script>
document.getElementById('webtorrent').addEventListener('click', async ev => {
ev.target.nextElementSibling.style.display = 'block'
await getStreams('api/webtorrent', 'webtorrent-table')
})
</script>
</body>
</html>