diff --git a/src/app/index.coffee b/src/app/index.coffee index 92c748c1ab..20798fc15e 100644 --- a/src/app/index.coffee +++ b/src/app/index.coffee @@ -307,3 +307,8 @@ ready (model) -> else model.set "_view.addFriendError", "User with id #{friendId} not found." + exports.emulateNextDay = -> + yesterday = moment().subtract('days', 1).toString() + user.set 'lastCron', yesterday + window.location.reload() + diff --git a/views/app/index.html b/views/app/index.html index 8ef73b5b3d..820f45870c 100644 --- a/views/app/index.html +++ b/views/app/index.html @@ -308,6 +308,9 @@