1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00

Added optional --user-profile-url for opening user profile page in an external domain, it was hardcoded.

This commit is contained in:
Gunther Brunner 2015-03-17 19:48:41 +09:00
parent f5cb2f91c0
commit e1a7560bc0
6 changed files with 21 additions and 22 deletions

View file

@ -111,6 +111,13 @@ module.exports = function(options) {
}
, user: req.user
}
if (options.userProfileUrl) {
state.config.userProfileUrl = (function () {
return options.userProfileUrl
})()
}
res.type('application/javascript')
res.send('var GLOBAL_APPSTATE = ' + JSON.stringify(state))
})