forked from rDrama/rDrama
1
0
Fork 0

fix faulty condition

master
Aevann 2023-09-29 07:56:32 +03:00
parent 99fcbebff5
commit 6199bad6d8
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@
{% endblock %}
</head>
<body {% block body_attributes %}id="{% block pagetype %}{% endblock %}"{% endblock %}>
{% if IS_HOMOWEEN() and (v and v.jumpscare) or 'shop' in request.path %}
{% if IS_HOMOWEEN() and ((v and v.jumpscare) or request.path.startswith('/shop/')) %}
{% set image_src = SITE_FULL_IMAGES ~ "/assets/events/homoween/images/jumpscares/" ~ listdir("files/assets/events/homoween/images/jumpscares")|random() ~ "?x=45" %}
<img src="{{image_src}}" id="jump-scare-img" style="display: none">
{% set audio_src = "/assets/events/homoween/audio/jumpscares/" ~ listdir("files/assets/events/homoween/audio/jumpscares")|random() ~ "?x=45" %}