mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +03:00
Global: Do not load fartscroll if it is disabled in the config
This commit is contained in:
parent
efcaa874fb
commit
b056ffab8b
1 changed files with 6 additions and 4 deletions
|
@ -293,10 +293,12 @@
|
||||||
{script "js/al_notifs.js"}
|
{script "js/al_notifs.js"}
|
||||||
{/ifset}
|
{/ifset}
|
||||||
|
|
||||||
|
{if OPENVK_ROOT_CONF['openvk']['preferences']['bellsAndWhistles']['fartscroll']}
|
||||||
<script src="https://unpkg.com/fartscroll@1.0.0/fartscroll.js"></script>
|
<script src="https://unpkg.com/fartscroll@1.0.0/fartscroll.js"></script>
|
||||||
<script n:if="OPENVK_ROOT_CONF['openvk']['preferences']['bellsAndWhistles']['fartscroll']">
|
<script>
|
||||||
fartscroll(400);
|
fartscroll(400);
|
||||||
</script>
|
</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']}"
|
||||||
|
|
Loading…
Reference in a new issue