mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 22:23:33 +01:00
use the temp enviroment variable for windows
This commit is contained in:
parent
7ff8814fd7
commit
3a77d96c98
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ var tempDirectory = "/tmp";
|
|||
//tempDirectory changes if the operating system is windows
|
||||
if(os.type().indexOf("Windows") > -1)
|
||||
{
|
||||
tempDirectory = "c:\\Temp";
|
||||
tempDirectory = process.env.TEMP;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -35,7 +35,7 @@ var tempDirectory = "/tmp/";
|
|||
//tempDirectory changes if the operating system is windows
|
||||
if(os.type().indexOf("Windows") > -1)
|
||||
{
|
||||
tempDirectory = "c:\\Temp\\";
|
||||
tempDirectory = process.env.TEMP;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue