Browse Source

trim leading spaces from domains

master
ansuz 1 year ago
parent
commit
663a1138b4
1 changed files with 1 additions and 1 deletions
  1. 2
      server.js

2
server.js

@ -214,7 +214,7 @@ app.get('/api/config', function(req, res){
// FIXME don't send websocketURL if websocketPath is provided. deprecated.
websocketURL:'ws' + ((useSecureWebsockets) ? 's' : '') + '://' + host + ':' +
websocketPort + '/cryptpad_websocket',
httpUnsafeOrigin: config.httpUnsafeOrigin.replace(/^ /, ''),
httpUnsafeOrigin: config.httpUnsafeOrigin.replace(/^\s*/, ''),
adminEmail: config.adminEmail,
adminKeys: admins,
inactiveTime: config.inactiveTime,

Loading…
Cancel
Save