From 4bfd6baab2f271ca3186ea5be73e176fa7244bc3 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 8 Jun 2019 13:38:18 +0200 Subject: [PATCH] Removed old assistant google web plugin --- .../http/static/js/assistant.google.js | 45 ------------------- 1 file changed, 45 deletions(-) delete mode 100644 platypush/backend/http/static/js/assistant.google.js diff --git a/platypush/backend/http/static/js/assistant.google.js b/platypush/backend/http/static/js/assistant.google.js deleted file mode 100644 index a14b32c3ee..0000000000 --- a/platypush/backend/http/static/js/assistant.google.js +++ /dev/null @@ -1,45 +0,0 @@ -$(document).ready(function() { - var onEvent = function(event) { - switch (event.args.type) { - case 'platypush.message.event.assistant.ConversationStartEvent': - createNotification({ - 'text': 'Assistant listening', - 'icon': 'microphone', - }); - - break; - - case 'platypush.message.event.assistant.SpeechRecognizedEvent': - createNotification({ - 'title': 'Speech recognized', - 'text': event.args.phrase, - 'icon': 'microphone', - }); - - break; - - case 'platypush.message.event.assistant.ResponseEvent': - createNotification({ - 'title': 'Assistant response', - 'text': event.args.response_text, - 'icon': 'volume-up', - }); - - break; - - case 'platypush.message.event.assistant.ConversationEndEvent': - break; - } - }; - - var initEvents = function() { - window.registerEventListener(onEvent); - }; - - var init = function() { - initEvents(); - }; - - init(); -}); -