1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-22 23:16:53 +00:00

Allow server module to work under Node even if $tw.browser is defined

Needed for TiddlyDesktop, where want to be able to run the HTTP server
in a hybrid browser/node environment.
This commit is contained in:
Jermolene 2015-11-10 18:13:30 +00:00
parent d3586c7bf1
commit ac00aa8407

View File

@ -12,7 +12,7 @@ Serve tiddlers over http
/*global $tw: false */
"use strict";
if(!$tw.browser) {
if($tw.node) {
var util = require("util"),
fs = require("fs"),
url = require("url"),