mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #2713 from overleaf/jpa-custom-wsurl-for-beta-users
[misc] custom wsUrl for beta users GitOrigin-RevId: e731ae7245e9c5586ae82cbc4c6716a74e56f2c9
This commit is contained in:
@@ -66,6 +66,7 @@ module.exports = LaunchpadController = {
|
||||
}
|
||||
if (user && user.isAdmin) {
|
||||
return res.render(Path.resolve(__dirname, '../views/launchpad'), {
|
||||
wsUrl: Settings.wsUrl,
|
||||
adminUserExists,
|
||||
authMethod
|
||||
})
|
||||
|
||||
@@ -9,7 +9,7 @@ block content
|
||||
authMethod: "!{authMethod}"
|
||||
}
|
||||
|
||||
script(type="text/javascript" src='/socket.io/socket.io.js')
|
||||
script(type="text/javascript" src=(wsUrl || '/socket.io') + '/socket.io.js')
|
||||
|
||||
style.
|
||||
hr { margin-bottom: 5px; }
|
||||
|
||||
@@ -171,6 +171,7 @@ describe('LaunchpadController', function() {
|
||||
this.res.render.callCount.should.equal(1)
|
||||
return this.res.render
|
||||
.calledWith(viewPath, {
|
||||
wsUrl: undefined,
|
||||
adminUserExists: true,
|
||||
authMethod: 'local'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user