Skip to content

Commit 6bd8c3c

Browse files
whizzzkidlidel
andauthored
Update add-on/src/lib/redirect-handler/blockOrObserve.ts
Co-authored-by: Marcin Rataj <lidel@lidel.org>
1 parent e56bb6a commit 6bd8c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

add-on/src/lib/redirect-handler/blockOrObserve.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ interface messageToSelf {
3636
// the way sinon ends up stubbing it, it's not directly available in the global scope on import
3737
// rather it gets replaced dynamically when the module is imported. Which means, we can't
3838
// just check for the existence of the property, we need to call the browser instance at that point.
39-
export const supportsBlock = (): boolean => !(browser.declarativeNetRequest?.MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES === 5000)
39+
export const supportsBlock = (): boolean => !(browser.declarativeNetRequest?.MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES > 0)
4040

4141
/**
4242
* Notify self about state change.

0 commit comments

Comments
 (0)