Skip to content

Commit

Permalink
Add examples for inline and injected scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamWr committed Nov 14, 2022
1 parent fc2c355 commit 0ab3d04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/scriptlets/abort-on-stack-trace.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ import {
* ! Aborts script when stack trace matches with any of these parameters
* example.org#%#//scriptlet('abort-on-stack-trace', 'Ya', 'yandexFuncName')
* example.org#%#//scriptlet('abort-on-stack-trace', 'Ya', 'yandexScriptName')
*
* ! Aborts script when it tries to access `window.Ya` and it's an inline script
* example.org#%#//scriptlet('abort-on-stack-trace', 'Ya', 'inlineScript')
*
* ! Aborts script when it tries to access `window.Ya` and it's an injected script
* example.org#%#//scriptlet('abort-on-stack-trace', 'Ya', 'injectedScript')
* ```
*/
/* eslint-enable max-len */
Expand Down

0 comments on commit 0ab3d04

Please sign in to comment.