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:
parent
f5cb2f91c0
commit
e1a7560bc0
6 changed files with 21 additions and 22 deletions
|
@ -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))
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue