Skip to content

Commit

Permalink
moved to helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
relativisticelectron committed Aug 9, 2022
1 parent 62a3ae1 commit 9f85100
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/cryptoadvance/specter/static/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ document.addEventListener("updateAddressLabel", function (e) {
});
}
});

document.documentElement.style.setProperty('--mobileDistanceElementBottomHeight', `${Math.max(0, window.outerHeight - window.innerHeight)}px`);

function showError(msg, timeout=0) {
return showNotification(msg, timeout, "error");
}
Expand Down
3 changes: 0 additions & 3 deletions src/cryptoadvance/specter/templates/base.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@
}
</style>
<script type="text/javascript" src="{{ url_for('static', filename='helpers.js') }}"></script>
<script>
document.documentElement.style.setProperty('--mobileDistanceElementBottomHeight', `${Math.max(0, window.outerHeight - window.innerHeight)}px`);
</script>
{% block head %}
{% endblock %}
</head>
Expand Down

0 comments on commit 9f85100

Please sign in to comment.