We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2bfa8b9 + 6881210 commit 54d7d45Copy full SHA for 54d7d45
templates/welcome.html.j2
@@ -28,12 +28,12 @@
28
onload="this.style.position='static'; this.style.visibility='visible';"></iframe>
29
<script type="text/javascript">
30
var pseudo_rand = parseInt(Date.now() / 1000 / 60 / 10);
31
- {% if galaxy_themes_use_iframe is defined %}
+ {% if galaxy_themes_use_iframe is defined and subdomain is defined and galaxy_themes_use_iframe.status == 200 %}
32
document.getElementById('center-iframe').src = '{{ galaxy_themes_welcome_url_prefix }}{{ subdomain.name }}?nonce=' + pseudo_rand + '#';
33
{% else %}
34
document.getElementById('center-iframe').src = '{{ galaxy_themes_default_welcome }}?nonce=' + pseudo_rand + '#';
35
{% endif %}
36
</script>
37
</body>
38
39
-</html>
+</html>
0 commit comments