Skip to content

Commit fcc131d

Browse files
authored
Update README.md
- Add file extension for file based rules. - Wording improvements. - Update ECMAScript version from 2022 to 2024. Signed-off-by: Florian Hotze <[email protected]>
1 parent 7edd016 commit fcc131d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ This library is included by default in the openHAB [JavaScript Scripting add-on]
4646

4747
### Default Installation
4848

49-
Install the openHAB [JavaScript Scripting add-on](https://www.openhab.org/addons/automation/jsscripting/), a version of this library will be automatically installed and available to ECMAScript 2022+ rules created using [File Based Rules](#file-based-rules) or [UI Based Rules](#ui-based-rules).
49+
Install the openHAB [JavaScript Scripting add-on](https://www.openhab.org/addons/automation/jsscripting/), a version of this library will be automatically installed and available to ECMAScript 2024+ rules created using [File Based Rules](#file-based-rules) or [UI Based Rules](#ui-based-rules).
5050

5151
openHAB also provides the [JavaScript Scripting (Nashorn) add-on](https://www.openhab.org/addons/automation/jsscriptingnashorn/), which is based on the older Nashorn JavaScript engine. This is referred to as `ECMA - 262 Edition 5.1` or `application/javascript;version=ECMAScript-5.1` in the Main UI.
5252
*This library is not compatible with this older runtime.*
@@ -1212,8 +1212,8 @@ See [openhab-js : utils](https://openhab.github.io/openhab-js/utils.html) for fu
12121212
12131213
## File Based Rules
12141214
1215-
The JS Scripting binding will load scripts from `automation/js` in the user configuration directory.
1216-
The system will automatically reload scripts when changes are detected to files.
1215+
The JavaScript Scripting automation add-on will load `.js` scripts from `automation/js` in the user configuration directory.
1216+
The system will automatically reload a script when changes are detected to the script file.
12171217
Local variable state is not persisted among reloads, see using the [cache](#cache) for a convenient way to persist objects.
12181218
12191219
File based rules can be created in 2 different ways: using [JSRule](#jsrule) or the [Rule Builder](#rule-builder).

0 commit comments

Comments
 (0)