aboutsummaryrefslogtreecommitdiff
path: root/cli/onionshare_cli/web/chat_mode.py
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2021-04-12 17:55:16 -0400
committerMicah Lee <micah@micahflee.com>2021-04-12 17:55:16 -0400
commitb5c68fa5ca63b6a592ac2cfb75179a83222d55ac (patch)
treed7c8db3bd6de2fc33f4dac4cea260d7143f92792 /cli/onionshare_cli/web/chat_mode.py
parent530f9547f5ac28e68e83ed827d334f66de99bdc4 (diff)
downloadonionshare-b5c68fa5ca63b6a592ac2cfb75179a83222d55ac.tar.gz
onionshare-b5c68fa5ca63b6a592ac2cfb75179a83222d55ac.zip
Add --title, and make it display the title in chat mode
Diffstat (limited to 'cli/onionshare_cli/web/chat_mode.py')
-rw-r--r--cli/onionshare_cli/web/chat_mode.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/cli/onionshare_cli/web/chat_mode.py b/cli/onionshare_cli/web/chat_mode.py
index 2daf9654..8b2a5673 100644
--- a/cli/onionshare_cli/web/chat_mode.py
+++ b/cli/onionshare_cli/web/chat_mode.py
@@ -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)