mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 06:29:53 +01:00
Fix #655, wrong located APIKEY.txt
This commit is contained in:
parent
476065b68d
commit
99ecadc0c3
1 changed files with 2 additions and 2 deletions
|
@ -29,12 +29,12 @@ var randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString;
|
||||||
var apikey = null;
|
var apikey = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
apikey = fs.readFileSync("../APIKEY.txt","utf8");
|
apikey = fs.readFileSync("./APIKEY.txt","utf8");
|
||||||
}
|
}
|
||||||
catch(e)
|
catch(e)
|
||||||
{
|
{
|
||||||
apikey = randomString(32);
|
apikey = randomString(32);
|
||||||
fs.writeFileSync("../APIKEY.txt",apikey,"utf8");
|
fs.writeFileSync("./APIKEY.txt",apikey,"utf8");
|
||||||
}
|
}
|
||||||
|
|
||||||
//a list of all functions
|
//a list of all functions
|
||||||
|
|
Loading…
Reference in a new issue