This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Execute this in a chrome-context Scratchpad or browser console | |
Cu.import('resource://shield-recipe-client/lib/ClientEnvironment.jsm'); | |
Cu.import('resource://shield-recipe-client/lib/FilterExpressions.jsm'); | |
async function main() { | |
const context = ClientEnvironment.getEnvironment(); | |
const filterExpression = 'normandy.country == "US" && normandy.isDefaultBrowser'; | |
const result = await FilterExpressions.eval(filterExpression, context); | |
console.log(result); | |
} | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment