From 7d76ff1511dff440a4ae30ed2487dbd51c9b7585 Mon Sep 17 00:00:00 2001 From: hchiam Date: Tue, 15 Oct 2019 15:02:29 -0400 Subject: [PATCH] 4.0.2: fix #35 feedback form auto-fill (and detect screen) --- index.js | 25 ++++++++----------------- package.json | 2 +- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/index.js b/index.js index a013627..539700d 100644 --- a/index.js +++ b/index.js @@ -11,29 +11,20 @@ const v = 4; // also edit the intents "-1.0 No/Bye" and "1.0 Default Welcome Int // make this the only global variable for the complex parsing var codeVariables = []; -function hasScreenOutput(request) { - if (request !== undefined) { - let requestPayload = request.body.originalDetectIntentRequest.payload; - if (requestPayload.surface && requestPayload.surface.capabilities && requestPayload.surface.capabilities[0]) { - for (let i=0; i