mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 00:16:15 -04:00
skins: the settings class understands skinName. Send skinName value to the client
skinName must be a single string (no directory separators in it) pointing to an existing directory under /src/static/skins. In case these conditions are not met, its value is rewritten to "no-skin". Also, the value of skinName if sent to the client via clientVars for allowing its use it in the browser.
This commit is contained in:
parent
7edc0fea16
commit
e34c74b24d
2 changed files with 45 additions and 0 deletions
|
@ -1268,6 +1268,7 @@ function handleClientReady(client, message)
|
|||
// client is read only you would open a security hole 1 swedish
|
||||
// mile wide...
|
||||
var clientVars = {
|
||||
"skinName": settings.skinName,
|
||||
"accountPrivs": {
|
||||
"maxRevisions": 100
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue