Protect all Node-specific code with NODE checks

This commit is contained in:
Jeff Parsons 2017-01-02 15:16:18 -08:00 committed by Jeff Parsons
commit b5d6afd210
49 changed files with 362 additions and 282 deletions

View file

@ -28,11 +28,12 @@
"use strict";
var fs = require("fs");
var http = require("http");
var path = require("path");
var url = require("url");
var Str = require("../../shared/es6/strlib");
if (NODE) {
var fs = require("fs");
var http = require("http");
var path = require("path");
var url = require("url");
}
class Net {
/**
@ -395,4 +396,4 @@ Net.REVEAL_PDFS = "pdfs";
Net.asPropagate = [Net.GORT_COMMAND, "autostart"];
Net.sServerRoot = null;
module.exports = Net;
if (NODE) module.exports = Net;