Skip to content

Instantly share code, notes, and snippets.

@shaunflagg
Last active December 14, 2016 22:19
Show Gist options
  • Save shaunflagg/45bf147c381525aae9290f63a53151d1 to your computer and use it in GitHub Desktop.
Save shaunflagg/45bf147c381525aae9290f63a53151d1 to your computer and use it in GitHub Desktop.
Anvato 360 on/off switch
anvp.listener = threeSixtyListener;
function threeSixtyListener(e){
if (e.name == "METADATA_LOADED") {
var tags = e.args[2].tags;
console.log(tags);
if (tags.indexOf("360") > -1){
anvp.p0.config[360] = true;
}
else {
anvp.p0.config[360] = false;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment