From 6aa5968863b075b8310d1dac60bc943769828347 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 11 May 2021 17:14:53 +0100 Subject: [PATCH] Fix Function tab label names in the node help text Closes #2978 --- .../nodes/locales/en-US/function/10-function.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/function/10-function.html b/packages/node_modules/@node-red/nodes/locales/en-US/function/10-function.html index dd13b6732..831021917 100644 --- a/packages/node_modules/@node-red/nodes/locales/en-US/function/10-function.html +++ b/packages/node_modules/@node-red/nodes/locales/en-US/function/10-function.html @@ -21,9 +21,10 @@ the body of the message.

The function is expected to return a message object (or multiple message objects), but can choose to return nothing in order to halt a flow.

-

The Setup tab contains code that will be run whenever the node is started. - The Close tab contains code that will be run when the node is stopped.

-

If an promise object is returned from the setup code, input message processing starts after its completion.

+

The On Start tab contains code that will be run whenever the node is started. + The On Stop tab contains code that will be run when the node is stopped.

+

If the On Start code returns a Promise object, the node will not start handling messages + until the promise is resolved.

Details

See the online documentation for more information on writing functions.