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,8 +28,10 @@
"use strict";
var Component = require("../../shared/es6/component");
var ReportAPI = require("../../shared/es6/reportapi");
if (NODE) {
var Component = require("../../shared/es6/component");
var ReportAPI = require("../../shared/es6/reportapi");
}
/*
* According to http://www.w3schools.com/jsref/jsref_obj_global.asp, these are the *global* properties
@ -1011,4 +1013,4 @@ Web.onPageEvent(Web.isUserAgent("Opera") || Web.isUserAgent("iOS")? 'onunload' :
Web.doPageEvent(Web.aPageEventHandlers['exit']);
});
module.exports = Web;
if (NODE) module.exports = Web;