Skip to content

Commit 80157c7

Browse files
committed
help tweak: Scripts can use the injected core variables
Signed-off-by: kingthorin <kingthorin@users.noreply.github.com>
1 parent b9143c3 commit 80157c7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66
## [Unreleased]
77
### Changed
88
- Maintenance changes.
9+
- The script example in the Help content was updated to use the injected core variables instead of using the fully qualified class name.
910

1011
## [1.5.0] - 2022-07-11
1112
### Added

src/main/javahelp/help/contents/intro.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <H1>Neonmarker</H1>
2424
<p></p>
2525
<pre>
2626
<code>
27-
extNeon = org.parosproxy.paros.control.Control.getSingleton().getExtensionLoader().getExtension(org.zaproxy.zap.extension.neonmarker.ExtensionNeonmarker.NAME);
27+
extNeon = control.getExtensionLoader().getExtension(org.zaproxy.zap.extension.neonmarker.ExtensionNeonmarker.NAME);
2828

2929
// History items tagged “Comment” will be red
3030
extNeon.addColorMapping("Comment", 0x990000);

0 commit comments

Comments
 (0)