Avatar

Level 2

update:

replaced s.pageURL with window.document.URL and the rule seems to work fine. however only the first part of the condition is being considered i.e. rules fires when URL contains /xyz but not when it contains /abc.

if (window.document.URL.indexOf("/xyz")>-1 || window.document.URL.indexOf("/abc")>-1)

is there any other way to implement an OR condition?