Global: Do not load fartscroll if it is disabled in the config

This commit is contained in:
Maxim Leshchenko 2022-01-06 01:39:43 +02:00
parent efcaa874fb
commit b056ffab8b
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -293,10 +293,12 @@
{script "js/al_notifs.js"} {script "js/al_notifs.js"}
{/ifset} {/ifset}
<script src="https://unpkg.com/fartscroll@1.0.0/fartscroll.js"></script> {if OPENVK_ROOT_CONF['openvk']['preferences']['bellsAndWhistles']['fartscroll']}
<script n:if="OPENVK_ROOT_CONF['openvk']['preferences']['bellsAndWhistles']['fartscroll']"> <script src="https://unpkg.com/fartscroll@1.0.0/fartscroll.js"></script>
fartscroll(400); <script>
</script> fartscroll(400);
</script>
{/if}
<script n:if="OPENVK_ROOT_CONF['openvk']['telemetry']['plausible']['enable']" <script n:if="OPENVK_ROOT_CONF['openvk']['telemetry']['plausible']['enable']"
async defer data-domain="{php echo OPENVK_ROOT_CONF['openvk']['telemetry']['plausible']['domain']}" async defer data-domain="{php echo OPENVK_ROOT_CONF['openvk']['telemetry']['plausible']['domain']}"