mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-13 22:07:15 +00:00
Added node.js version check and related refactorings
This commit is contained in:
@@ -271,8 +271,7 @@ exports.extractVersionInfo = function() {
|
||||
|
||||
// Server version
|
||||
exports.extractVersionInfo = function() {
|
||||
var fs = require("fs");
|
||||
return JSON.parse(fs.readFileSync($tw.boot.bootPath + "/../package.json")).version;
|
||||
return $tw.packageInfo.version;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user