Send valid admin keys to the clients

This commit is contained in:
yflory 2019-03-27 18:12:34 +01:00
parent cd43872777
commit 7d4589bdb0
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ app.get('/api/config', function(req, res){
admins = (config.adminKeys || []).map(function (k) {
k = k.replace(/\/+$/, '');
var s = k.split('/');
return s[s.length-1];
return s[s.length-1].replace(/-/g, '/');
});
} catch (e) { console.error("Can't parse admin keys"); }
res.setHeader('Content-Type', 'text/javascript');