diff --git a/static/js/app.js b/static/js/app.js index 08aeac94b..0b881200b 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -298,6 +298,16 @@ quayApp = angular.module('quay', ['ngRoute', 'chieffancypants.loadingBar', 'rest '$created': new Date() }) + if (window.olark !== undefined) { + olark('api.visitor.getDetails', function(details) { + if (details.fullName === null) { + olark('api.visitor.updateFullName', {fullName: userResponse.username}); + } + }); + olark('api.visitor.updateEmailAddress', {emailAddress: userResponse.email}); + olark('api.chat.updateVisitorStatus', {snippet: 'username: ' + userResponse.username}); + } + CookieService.putPermanent('quay.loggedin', 'true'); }