mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Added optional --user-profile-url for opening user profile page in an external domain, it was hardcoded.
This commit is contained in:
@@ -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))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user