mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Use fs.statSync instead of fs.existsSync (deprecated)
This commit is contained in:
parent
f49de0b61b
commit
835bca7967
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ var languages = require('languages4translatewiki')
|
|||
, npm = require('npm')
|
||||
, plugins = require('ep_etherpad-lite/static/js/pluginfw/plugins.js').plugins
|
||||
, semver = require('semver')
|
||||
, existsSync = semver.gt(process.version, '0.7.0') ? fs.existsSync : path.existsSync
|
||||
, existsSync = fs.statSync || fs.existsSync || path.existsSync
|
||||
;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue