diff --git a/files/routes/chat.py b/files/routes/chat.py index b74f320c1..7fc839670 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -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 diff --git a/files/templates/chat.html b/files/templates/chat.html index 0de1cfab6..e9db946e4 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -15,7 +15,7 @@
-
+