Change darmode setting

This commit is contained in:
Stephan Porada
2020-04-27 10:19:20 +02:00
parent 3a05a4d2f4
commit 7cfa3bd022
3 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@
<script src="{{ url_for('static', filename='js/nopaque.lists.js') }}"></script>
<script>
nopaque.user.isAuthenticated = {{ current_user.is_authenticated|tojson }};
nopaque.user.settings.darkMode = {{ (current_user.is_authenticated and current_user.is_dark)|tojson }};
nopaque.user.settings.darkMode = {{ (current_user.is_authenticated and current_user.setting_dark_mode)|tojson }};
nopaque.flashedMessages = {{ get_flashed_messages(with_categories=true)|tojson }};
</script>
</head>