Improve 'prevent-fetch' — set response.ok to false if response.type is opaque #441
Labels
enhancement
Improvement of existent feature
Priority: P4
Release: v2.0.1
Resolution: Fixed
Status: Closed
Version: Scriptlets v2.0
Steps to reproduce:
2, Go to - https://example.org/
3. In browser console run:
Alert is displayed, because
response.ok
istrue
, but without ad blocker isfalse
.Adding
ok: { value: false; }
to:Scriptlets/src/helpers/noop-utils.ts
Lines 126 to 132 in 85b3346
should fixes it.
This issue - #394 (comment) could be also fixed.
The text was updated successfully, but these errors were encountered: