From 3c8e7fb78f49c94dec093596875a9fa6f9293725 Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Thu, 14 Apr 2016 22:56:51 -0700 Subject: [PATCH] Add support for --private to server.js (for my private builds only) --- modules/htmlout/lib/htmlout.js | 5 ++++- modules/shared/lib/private.js | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/htmlout/lib/htmlout.js b/modules/htmlout/lib/htmlout.js index 8d72d8438..d4b43c5cd 100644 --- a/modules/htmlout/lib/htmlout.js +++ b/modules/htmlout/lib/htmlout.js @@ -89,7 +89,10 @@ var fServerDebug = false; var logFile = null; /* - * fPrivate determines the insertion of private.js + * fPrivate will be set to true to by setOptions() if the server was started with '--private', giving the Node + * server an option comparable to Jekyll's site.pcjs.private setting, and triggering the load of "private.js" as + * appropriate. Currently, the only (checked-in) use of the private setting is to set the client's PRIVATE global + * and trigger the loading of alternate (ie, private) XML files in embed.js. */ var fPrivate = false; diff --git a/modules/shared/lib/private.js b/modules/shared/lib/private.js index dbcbe9c9b..70d7bab28 100644 --- a/modules/shared/lib/private.js +++ b/modules/shared/lib/private.js @@ -38,5 +38,8 @@ * PRIVATE enables certain private features that we don't want enabled on the public web server, so by default, * PRIVATE is false. For Jekyll configurations, if site.pcjs.private is set, this file gets included, overriding * the default. + * + * Currently, the only (checked-in) use of the private setting is to set the client's PRIVATE global and trigger + * the loading of alternate (ie, private) XML files in embed.js. */ PRIVATE = true;