Browse Source

Fix wrong domain on cookie set

ghorsington 4 years ago
parent
commit
418e2ce81c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/appearanceController.js

+ 1 - 1
controllers/appearanceController.js

@@ -8,8 +8,8 @@ appearanceController.toggleDarkMode = async (req, res, next) => {
         cur = 'dark';
     else if(cur == 'dark')
         cur = 'light';
+
     res.cookie('appearance', cur, {
-        'domain': config.domain,
         'expires': new Date(253402300000000) 
     });
     return res.json({ currentStyle: cur });