mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
node8: we can safely use os.tmpdir()
Since we are requiring node >= 8, we can safely use native functionalities.
This commit is contained in:
parent
09949c242a
commit
6d36bb2c53
3 changed files with 4 additions and 10 deletions
|
@ -40,13 +40,7 @@ if(settings.abiword != null)
|
|||
if(settings.soffice != null)
|
||||
convertor = require("../utils/LibreOffice");
|
||||
|
||||
var tempDirectory = "/tmp";
|
||||
|
||||
//tempDirectory changes if the operating system is windows
|
||||
if(os.type().indexOf("Windows") > -1)
|
||||
{
|
||||
tempDirectory = process.env.TEMP;
|
||||
}
|
||||
const tempDirectory = os.tmpdir();
|
||||
|
||||
/**
|
||||
* do a requested export
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue