diff options
Diffstat (limited to 'client/button.js')
| -rw-r--r-- | client/button.js | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/client/button.js b/client/button.js index b957016..9e3e834 100644 --- a/client/button.js +++ b/client/button.js @@ -287,25 +287,7 @@ Template.photo.helpers({ proxy: function (url) { return url.replace('https://scontent.cdninstagram.com', '/imgproxy?url='); } -}) - -Template.about.events({ - 'click button.start-over': function (event) { - if (Meteor.userId()) { - Router.go('dates'); - } - else { - Router.go('login'); - } - }, - 'click button.logout': function (event) { - $('body').append('<div style="display:none;"><iframe src="https://instagram.com/accounts/logout"></iframe></div>'); - Meteor.logout(); - _.delay(function () { - Router.go('login'); - }, 500); - } -}) +}); Accounts.onLogin(function() { Meteor.call('getInstagramProfilePhoto', function(error, res) { |
