Created
June 8, 2017 15:12
-
-
Save mythmon/bcb8a480a9b410077ca306c669f632e0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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