Use database when logged in. Continued.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2019-11-19 21:55:43 +02:00
parent 975258ef39
commit 115d23f929
5 changed files with 19 additions and 17 deletions

View file

@ -199,7 +199,8 @@ BlazeComponent.extendComponent({
let showDesktopDragHandles = false;
currentUser = Meteor.user();
if (currentUser) {
showDesktopDragHandles = (currentUser.profile || {}).showDesktopDragHandles;
showDesktopDragHandles = (currentUser.profile || {})
.showDesktopDragHandles;
} else {
if (cookies.has('showDesktopDragHandles')) {
showDesktopDragHandles = true;