This commit is contained in:
Aevann1 2022-03-24 05:00:39 +02:00
parent ac9717c99f
commit 5c636d75d2
2 changed files with 10 additions and 4 deletions

View file

@ -8,7 +8,7 @@ if "load_chat" in sys.argv or SITE == 'localhost':
from datetime import datetime
from flask_socketio import SocketIO, emit
from files.__main__ import app, limiter, cache
from flask import render_template
from flask import render_template, make_response, send_from_directory
import sys
import atexit
@ -26,7 +26,7 @@ if "load_chat" in sys.argv or SITE == 'localhost':
@app.get('/static/chat.js')
@limiter.exempt
def chatjs(path):
def chatjs():
resp = make_response(send_from_directory('assets', 'js/chat.js'))
return resp