Skip to content

Commit

Permalink
bug: add listen_for_web3_changes to change_bounty
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Apr 13, 2020
1 parent 06bf49c commit ce75a89
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/dashboard/templates/bounty/change.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,12 @@ <h1 class="text-center title">{% trans "Change Bounty Details" %}</h1>
document.pk = {{ pk }};
document.result = {{ result|safe }};
const token_address = '{{ token_address }}';
{% if not is_bounties_network %}
{% if is_bounties_network %}
window.addEventListener('load', function() {
setInterval(listen_for_web3_changes, 5000);
listen_for_web3_changes();
});
{% else %}
document.web3network = 'mainnet';
{% endif %}
</script>
Expand Down

0 comments on commit ce75a89

Please sign in to comment.