mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
added user config for dark mode and navigation
This commit is contained in:
parent
1d7ecc3efa
commit
40af926104
7 changed files with 82 additions and 16 deletions
|
|
@ -9,7 +9,7 @@ Template.MainLayout.onRendered(function() {
|
|||
let myId = Meteor.userId();
|
||||
let myprefs = UserConfig.findOne({ user: myId });
|
||||
if (typeof myprefs != 'undefined') {
|
||||
if (myprefs.darkPref == "light") {
|
||||
if (myprefs.darkMode == "light") {
|
||||
console.log("Found theme as light");
|
||||
// Session.set("myTheme", "light");
|
||||
document.documentElement.setAttribute('theme', "light");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue