1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-25 23:03:15 +00:00

Keeping JSHint happy

This commit is contained in:
Jeremy Ruston 2012-08-02 22:24:37 +01:00
parent 9ddebd0c04
commit 3ade3397fb

View File

@ -40,11 +40,12 @@ if(typeof(window) === "undefined" && !global.$tw) {
$tw.boot = {};
// Server initialisation
var fs, path, vm;
if(!$tw.browser) {
// Standard node libraries
var fs = require("fs"),
path = require("path"),
vm = require("vm");
fs = require("fs");
path = require("path");
vm = require("vm");
// System paths and filenames
$tw.boot.bootFile = path.basename(module.filename);
$tw.boot.bootPath = path.dirname(module.filename);