Skip to content

Commit

Permalink
Iframe URL is based on host e.g. for internal network deployments (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet authored Jul 13, 2023
1 parent e2b50e2 commit 9823b37
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/queue.jinja2
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{% extends "components/base.jinja2" %}
{% block main_raw %}
<iframe src="{{ dashboard_url }}" class="w-100 h-100" style="border: none; margin-top: -75px"></iframe>
<iframe id="dashboard-frame" class="w-100 h-100" style="border: none; margin-top: -75px"></iframe>
<script>
window.onload = function() {
document.getElementById("dashboard-frame").src = window.location.protocol + "//" + window.location.hostname + ":5001/";
}
</script>
{% endblock %}

0 comments on commit 9823b37

Please sign in to comment.