feat: expose submitBallot for testing

This commit is contained in:
Ax333l 2023-01-07 19:07:55 +01:00
parent e194ad6dbc
commit f21e7954d1
No known key found for this signature in database
GPG Key ID: D2B4D85271127D23

View File

@ -48,6 +48,8 @@
// Reply: don't think we need to refactor because nobody cares if this code is shit lol
onMount(async () => {
window['use_token'] = exchange_token;
window['submit_poll'] = submitBallot;
const response = await fetch('https://poll.revanced.app/logos');
const json = await response.json();