1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 21:00:23 +01:00

userAgent feature could not be disabled

This commit is contained in:
kkapsner 2019-11-25 22:10:31 +01:00
parent d4ce6c4b4b
commit 83a8234b24

View File

@ -73,8 +73,8 @@
settings.get("protectNavigator", url) && settings.get("protectNavigator", url) &&
check.check({url}).mode !== "allow" && check.check({url}).mode !== "allow" &&
( (
!settings.protectedAPIFeatures.hasOwnProperty("userAgent") || !settings.protectedAPIFeatures.hasOwnProperty("userAgent @ navigator") ||
settings.protectedAPIFeatures.userAgent settings.protectedAPIFeatures["userAgent @ navigator"]
) )
){ ){
for (var header of details.requestHeaders){ for (var header of details.requestHeaders){