daveappserver 0.6.11 → 0.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/appserver.js +4 -2
- package/package.json +1 -1
package/appserver.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var myVersion = "0.6.
|
|
1
|
+
var myVersion = "0.6.12", myProductName = "daveAppServer";
|
|
2
2
|
|
|
3
3
|
exports.start = startup;
|
|
4
4
|
exports.notifySocketSubscribers = notifySocketSubscribers;
|
|
@@ -1089,14 +1089,16 @@ function startup (options, callback) {
|
|
|
1089
1089
|
var flReadConfigJson = true;
|
|
1090
1090
|
if (!err) {
|
|
1091
1091
|
try {
|
|
1092
|
+
scripttext = scripttext.toString ();
|
|
1092
1093
|
var jstruct = requireFromString (scripttext);
|
|
1093
|
-
for (var x in
|
|
1094
|
+
for (var x in jstruct) {
|
|
1094
1095
|
config [x] = jstruct [x];
|
|
1095
1096
|
}
|
|
1096
1097
|
flReadConfigJson = false;
|
|
1097
1098
|
callback ();
|
|
1098
1099
|
}
|
|
1099
1100
|
catch (err) {
|
|
1101
|
+
console.log (err.message);
|
|
1100
1102
|
}
|
|
1101
1103
|
}
|
|
1102
1104
|
if (flReadConfigJson) {
|