Skip to content

Commit

Permalink
add web3 listener on tokens page
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed Apr 10, 2020
1 parent c039e2c commit e8cd9ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/retail/templates/settings/tokens.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ <h5>{% trans "Tokens" %}</h5>

<script>
document.gas_price = {{gas_price}};
window.addEventListener('load', function() {
setInterval(listen_for_web3_changes, 5000);
});

</script>
<script src="{% url 'javascript-catalog' %}"></script>
<script src="{% static "v2/js/lib/jquery.js" %}"></script>
Expand Down

0 comments on commit e8cd9ed

Please sign in to comment.