Skip to content

Instantly share code, notes, and snippets.

@muttoni
Created November 15, 2017 10:46
Show Gist options
  • Save muttoni/eded32021961fcb6951bf29f05355019 to your computer and use it in GitHub Desktop.
Save muttoni/eded32021961fcb6951bf29f05355019 to your computer and use it in GitHub Desktop.
Check if Alexa requests supports Render Templates
function supportsDisplay() {
var hasDisplay =
this.event.context &&
this.event.context.System &&
this.event.context.System.device &&
this.event.context.System.device.supportedInterfaces &&
this.event.context.System.device.supportedInterfaces.Display
return hasDisplay;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment