Skip to content

Commit bafcbdd

Browse files
committed
Update embedding.md to add global context
Add functionGlobalContext: { } to the settings object to enable it by default
1 parent 8d23013 commit bafcbdd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/embedding.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ application.
2727
// Create a server
2828
var server = http.createServer(app);
2929

30-
// Create the settings object
30+
// Create the settings object - see default settings.js file for other options
3131
var settings = {
3232
httpAdminRoot:"/red",
3333
httpNodeRoot: "/api",
34-
userDir:"/home/nol/.nodered/"
34+
userDir:"/home/nol/.nodered/",
35+
functionGlobalContext: { } // enables global context
3536
};
3637

3738
// Initialise the runtime with a server and settings

0 commit comments

Comments
 (0)