Archived
1
0

Add data-cfasync="false" to script tags

This prevents Cloudflare's Rocket Loader from acting on them.

Fixes #1451.
This commit is contained in:
Asher
2020-03-25 14:04:36 -05:00
parent d1687c1533
commit 0f066d30b4
6 changed files with 11 additions and 11 deletions

View File

@ -50,7 +50,7 @@
</div>
</div>
</body>
<script src="{{BASE}}/static/{{COMMIT}}/dist/register.js"></script>
<script data-cfasync="false" src="{{BASE}}/static/{{COMMIT}}/dist/register.js"></script>
<script>
const parts = window.location.pathname.replace(/^\//g, "").split("/")
parts[parts.length - 1] = "{{BASE}}"