You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/SETTINGS.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,29 +57,28 @@ The ``pebSettings`` JavaScript object may have the following properties:
57
57
``String`` displayed in a JavaScript Confirm popup box when the close button is pressed, but unsaved data in local HTML forms is detected. If no ``closeConfirmation`` object property is found, PEB exits immediately.
58
58
59
59
## Perl Scripts API
60
-
Every Perl script run by PEB has a JavaScript settings object with an arbitrary name and fixed object properties. The name of the JavaScript settings object with a ``.settings`` extension forms pseudo filename used to start the Perl script.
60
+
Every Perl script run by PEB has a JavaScript settings object with an arbitrary name and fixed object properties. The name of the JavaScript settings object with a ``.script`` extension forms pseudo filename used to start the Perl script.
61
61
62
62
There are three methods to start a local Perl script:
63
63
64
64
***Clicking a link to a settings pseudo filename:**
@@ -191,8 +190,9 @@ The [index.htm](https://github.com/ddmitov/perl-executing-browser/blob/master/re
191
190
The [interactive.pl](https://github.com/ddmitov/perl-executing-browser/blob/master/resources/app/perl/interactive.pl) script of the demo package is an example of a Perl interactive script for PEB.
192
191
193
192
## Starting Local Server
194
-
A [Mojolicious](http://mojolicious.org/) application or other local Perl server can be started by PEB provided that a
195
-
``{PEB_app_directory}/local-server.json`` file is found instead of ``{PEB_app_directory}/index.html`` with the following structure:
193
+
A [Mojolicious](http://mojolicious.org/) application or other local Perl server can be started by PEB provided that
194
+
a ``{PEB_app_directory}/local-server.json`` file is found instead of ``{PEB_app_directory}/index.html``
195
+
with the following structure:
196
196
197
197
```json
198
198
{
@@ -245,7 +245,7 @@ The ``#PORT#`` keyword within the command-line arguments is substituted with the
245
245
``shutdown_command`` is not needed if the local server uses a WebSocket connection to detect when PEB is disconnected and shut down on its own - see the [Tabula](https://github.com/ddmitov/tabula) application for an example.
246
246
247
247
## Selecting Files and Folders
248
-
Selecting files or folders with their full paths is performed by clicking a link to a pseudo filename composed of the name of the JavaScript settings object for the wanted dialog and a ``.dialog`` extension.
248
+
Selecting files or folders with their full paths is performed by clicking a link to a pseudo filename composed of the name of a JavaScript settings object for the wanted dialog and a ``.dialog`` extension.
249
249
250
250
A JavaScript settings object for a filesystem dialog has only two object properties:
0 commit comments