From 86ea99c2dc6aaa9fc6302e684c9ece7193e42aca Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Fri, 1 Feb 2013 14:05:52 -0500 Subject: [PATCH] add "emulate next day" debugging button --- src/app/index.coffee | 5 +++++ views/app/index.html | 3 +++ 2 files changed, 8 insertions(+) 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 @@