diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-08-25 21:13:17 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-09-02 19:33:52 -0400 |
commit | 71471d08e56f1a2431e67d0439724cc52a1ea73e (patch) | |
tree | e6562c5418195c4254026f3a34c41bea2500c1a7 /ext/fg/js/popup-nested.js | |
parent | 3491affcf13ef10b78714d4955da6ee9aeb11457 (diff) |
Add option to enable/disable scanning of source expressions in popups
Diffstat (limited to 'ext/fg/js/popup-nested.js')
-rw-r--r-- | ext/fg/js/popup-nested.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/fg/js/popup-nested.js b/ext/fg/js/popup-nested.js index ad235cc6..e0376bb2 100644 --- a/ext/fg/js/popup-nested.js +++ b/ext/fg/js/popup-nested.js @@ -32,7 +32,9 @@ async function popupNestedInitialize(id, depth, parentFrameId) { return; } - window.frontendInitializationData = {id, depth, parentFrameId}; + const ignoreNodes = options.scanning.enableOnPopupExpressions ? [] : [ '.expression', '.expression *' ]; + + window.frontendInitializationData = {id, depth, parentFrameId, ignoreNodes}; const scriptSrcs = [ '/fg/js/frontend-api-sender.js', |