mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-14 19:16:54 -04:00
Merge c4966543ed
into 22bfe78c4f
This commit is contained in:
commit
e2e58de40f
1 changed files with 1 additions and 0 deletions
|
@ -157,6 +157,7 @@ exports.reloadSettings = function reloadSettings() {
|
|||
try {
|
||||
if(settingsStr) {
|
||||
settings = vm.runInContext('exports = '+settingsStr, vm.createContext(), "settings.json");
|
||||
settings = JSON.parse(JSON.stringify(settings)) // fix objects having constructors of other vm.context
|
||||
}
|
||||
}catch(e){
|
||||
console.error('There was an error processing your settings.json file: '+e.message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue