fix cursormarsey appearing to wpd logged-out

pull/195/head
Aevann 2023-08-13 16:23:42 +03:00
parent 8d8331d6b3
commit 4449ee939b
2 changed files with 2 additions and 1 deletions

View File

@ -129,4 +129,5 @@ def inject_constants():
"CHUD_PHRASES":CHUD_PHRASES, "hasattr":hasattr, "calc_users":calc_users, "HOLE_INACTIVITY_DELETION":HOLE_INACTIVITY_DELETION,
"MAX_IMAGE_AUDIO_SIZE_MB":MAX_IMAGE_AUDIO_SIZE_MB, "MAX_IMAGE_AUDIO_SIZE_MB_PATRON":MAX_IMAGE_AUDIO_SIZE_MB_PATRON,
"MAX_VIDEO_SIZE_MB":MAX_VIDEO_SIZE_MB, "MAX_VIDEO_SIZE_MB_PATRON":MAX_VIDEO_SIZE_MB_PATRON,
"CURSORMARSEY_DEFAULT":CURSORMARSEY_DEFAULT,
}

View File

@ -48,7 +48,7 @@
{{html_head.stylesheets_lower()}}
<script defer src="{{'js/bottom.js' | asset}}"></script>
{% if not v or v.cursormarsey %}
{% if (v and v.cursormarsey) or (not v and CURSORMARSEY_DEFAULT) %}
<div id="cursormarsey"></div>
<div id="cursormarsey-heart" class="d-none"></div>
<script defer src="{{'js/cursormarsey.js' | asset}}"></script>