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