Skip to content

Commit

Permalink
Add form submit dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Elijah-Bodden authored Jul 29, 2022
1 parent c510873 commit 6f3473f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/source/frontend/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
></textarea>
<i
class="sendbutton fa-solid fa-circle-arrow-right"
onclick="(async _ => {if (document.querySelector('#chatEntryField').value.trim().length === 0) return; if (livePeers[fusedStream.activeChat]) livePeers[fusedStream.activeChat].transport.channel.standardSend('consumable', {raw : document.querySelector('#chatEntryField').value.trim()});fusedStream.log(fusedStream.activeChat, document.querySelector('#chatEntryField').value.trim(), 'local'); document.querySelector('#chatEntryField').value=''; document.querySelector('#chatEntryField').style.height='fit-content';})()"
onclick="(async _ => {if (document.querySelector('#chatEntryField').value.trim().length === 0) return; if (livePeers[fusedStream.activeChat]) livePeers[fusedStream.activeChat].transport.channel.standardSend('consumable', {raw : document.querySelector('#chatEntryField').value.trim()});fusedStream.log(fusedStream.activeChat, document.querySelector('#chatEntryField').value.trim(), 'local'); eventHandler.dispatch('messageSubmit', document.querySelector('#chatEntryField').value.trim()); document.querySelector('#chatEntryField').value=''; document.querySelector('#chatEntryField').style.height='fit-content';})();"
></i>
</div>
</div>
Expand Down

0 comments on commit 6f3473f

Please sign in to comment.