1
0
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:
Jeremy Ruston
2012-08-02 14:32:38 +01:00
parent d53eb50a6e
commit 1f64a9e758
2 changed files with 21 additions and 10 deletions

View File

@@ -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;
};
}