master
Aevann1 2022-03-24 05:10:30 +02:00
parent 780e31f1bb
commit cbbeaf209c
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ if "load_chat" in sys.argv or SITE == 'localhost':
return render_template("chat.html", v=v, messages=messages)
@app.get('/static/chat.js')
@app.get('/chat.js')
@limiter.exempt
def chatjs():
resp = make_response(send_from_directory('assets', 'js/chat.js'))

View File

@ -81,7 +81,7 @@
<input id="vid" type="hidden" value="{{v.id}}">
<input id="site_name" type="hidden" value="{{SITE_NAME}}">
<script data-cfasync="false" src="/static/chat.js?v=1"></script>
<script data-cfasync="false" src="/chat.js?v=2"></script>
<style>
#chat-window {