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
Squashed commit of the following:
commit 785b89b
Merge: 59627ef9b1206d
Author: Adam Wróblewski <adam@adguard.com>
Date: Thu Feb 16 13:23:39 2023 +0100
Merge branch 'master' into fix/AG-19572
commit 59627ef
Author: Adam Wróblewski <adam@adguard.com>
Date: Wed Feb 15 16:47:05 2023 +0100
Make the structure less complicated
Add more specific comment
commit 068f67f
Author: Adam Wróblewski <adam@adguard.com>
Date: Tue Feb 14 18:30:29 2023 +0100
Log the name of the scriptlet
Set force flag to true
commit b2e7d1c
Author: Adam Wróblewski <adam@adguard.com>
Date: Mon Feb 13 19:03:30 2023 +0100
Use native startsWith() and endsWith() methods
Add a comment about checking type of text
Use logMessage instead of console.log
Modify logMessage function to allow logs other type than string
Fix test
commit 1a4cfcb
Author: Adam Wróblewski <adam@adguard.com>
Date: Wed Feb 8 18:18:11 2023 +0100
xml-prune scriptlet - fix issue with logging
Fix issue with not pruning new Request()
Improve logging a bit - log DOM tree to console
new Request
is usedCurrently if type of request is not a text then there are errors and script might not work correctly.
Steps to reproduce:
There is an error -
Uncaught TypeError: text.trim is not a function
Screenshot
Another issue is that, if
Request
constructor is used in fetch then request is not pruned/checked.The text was updated successfully, but these errors were encountered: