mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 06:37:10 -04:00
make the app mountable
This commit is contained in:
parent
9f0ca7cc44
commit
6188c88e4a
6 changed files with 49 additions and 20 deletions
2
node/utils/Settings.js
Normal file → Executable file
2
node/utils/Settings.js
Normal file → Executable file
|
@ -88,7 +88,7 @@ exports.abiwordAvailable = function()
|
|||
}
|
||||
|
||||
//read the settings sync
|
||||
var settingsStr = fs.readFileSync("../settings.json").toString();
|
||||
var settingsStr = fs.readFileSync(__dirname+"/../../settings.json").toString();
|
||||
|
||||
//remove all comments
|
||||
settingsStr = settingsStr.replace(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/gm,"").replace(/#.*/g,"").replace(/\/\/.*/g,"");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue