diff --git a/CEP_8.x/Samples/CEP_HTML_Test_Extension-8.0/html/Nodejs.html b/CEP_8.x/Samples/CEP_HTML_Test_Extension-8.0/html/Nodejs.html index e65d3d4..0622158 100755 --- a/CEP_8.x/Samples/CEP_HTML_Test_Extension-8.0/html/Nodejs.html +++ b/CEP_8.x/Samples/CEP_HTML_Test_Extension-8.0/html/Nodejs.html @@ -32,17 +32,22 @@ var dbType = 'mongodb'; var mongodbCollection = ""; - function isNodeJSEnabled() { - if (typeof(cep_node) ​!== 'undefined') { + function isNodeJSEnabled() + { + if (typeof(cep_node) !== 'undefined') + { //if require and process is available, it should be mixed context - if ((typeof(require) ​!== 'undefined') && (typeof(process) ​!== 'undefined')) { + if ((typeof(require) !== 'undefined') && (typeof(process) !== 'undefined')) + { $('#result').val("Node.js is enabled with mixed-context mode"); } else { - $('#result').val("Node.js is enabled"); - } - else { + $('#result').val("Node.js is enabled"); + } + } + else + { $('#result').val("Node.js is disabled"); } } @@ -353,7 +358,7 @@ -
+
@@ -374,7 +379,7 @@
- @@ -394,4 +399,4 @@
- \ No newline at end of file +