Add --title, and make it display the title in chat mode

This commit is contained in:
Micah Lee 2021-04-12 17:55:16 -04:00
parent 774e77ae51
commit 024cc83943
4 changed files with 13 additions and 8 deletions

View file

@ -18,12 +18,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from flask import (
request,
render_template,
make_response,
jsonify,
session)
from flask import request, render_template, make_response, jsonify, session
from flask_socketio import emit, join_room, leave_room
@ -72,6 +67,7 @@ class ChatModeWeb:
"chat.html",
static_url_path=self.web.static_url_path,
username=session.get("name"),
title=self.web.settings.get("general", "title"),
)
)
return self.web.add_security_headers(r)