mirror of
https://github.com/r-ca/kidshift-skills.git
synced 2024-10-26 01:24:03 +00:00
厳密比較じゃなくした
This commit is contained in:
parent
3f4cd14671
commit
d89808ab43
|
@ -32,8 +32,8 @@ const HelloWorldIntentHandler = {
|
||||||
|
|
||||||
const KidShiftAuthIntentHandler = {
|
const KidShiftAuthIntentHandler = {
|
||||||
canHandle(handlerInput: Alexa.HandlerInput) {
|
canHandle(handlerInput: Alexa.HandlerInput) {
|
||||||
return Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest'
|
return Alexa.getRequestType(handlerInput.requestEnvelope) == 'IntentRequest'
|
||||||
&& Alexa.getIntentName(handlerInput.requestEnvelope) === 'KidShiftAuthIntent';
|
&& Alexa.getIntentName(handlerInput.requestEnvelope) == 'KidShiftAuthIntent';
|
||||||
},
|
},
|
||||||
handle(handlerInput: Alexa.HandlerInput) {
|
handle(handlerInput: Alexa.HandlerInput) {
|
||||||
return handlerInput.responseBuilder
|
return handlerInput.responseBuilder
|
||||||
|
|
Loading…
Reference in New Issue
Block a user