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
// IMPORTANT: Display Interface for your skill should be enabled through the Amazon developer console | |
// See this screenshot - https://alexa.design/enabledisplay | |
/* HELPER FUNCTIONS */ | |
// returns true if the skill is running on a device with a display (show|spot) | |
function supportsDisplay(handlerInput) { | |
var hasDisplay = | |
handlerInput.requestEnvelope.context && | |
handlerInput.requestEnvelope.context.System && |