Skip to content

Commit 2cac6a5

Browse files
add missing defined
Thanks @miramiracoli for pointing that out.
1 parent 419a0c7 commit 2cac6a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/welcome.html.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
onload="this.style.position='static'; this.style.visibility='visible';"></iframe>
2929
<script type="text/javascript">
3030
var pseudo_rand = parseInt(Date.now() / 1000 / 60 / 10);
31-
{% if galaxy_themes_use_iframe is defined | default(false) and subdomain %}
31+
{% if galaxy_themes_use_iframe is defined and subdomain is defined %}
3232
document.getElementById('center-iframe').src = '{{ galaxy_themes_welcome_url_prefix }}{{ subdomain.name }}?nonce=' + pseudo_rand + '#';
3333
{% else %}
3434
document.getElementById('center-iframe').src = '{{ galaxy_themes_default_welcome }}?nonce=' + pseudo_rand + '#';

0 commit comments

Comments
 (0)