1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-10-18 01:06:48 -04:00
parent 138611efb5
commit 11615f4399
72 changed files with 829 additions and 623 deletions

View file

@ -1,4 +1,5 @@
define(['events'], function (events) {
'use strict';
var receiver = {
@ -13,7 +14,7 @@
var srch = 'jarvis';
var index = text.toLowerCase().indexOf(srch);
if (index != -1) {
if (index !== -1) {
text = text.substring(index + srch.length);
} else {
return null;
@ -30,11 +31,13 @@
return new Promise(function (resolve, reject) {
cancelListener();
var recognition = new (window.SpeechRecognition ||
var recognitionObj = window.SpeechRecognition ||
window.webkitSpeechRecognition ||
window.mozSpeechRecognition ||
window.oSpeechRecognition ||
window.msSpeechRecognition)();
window.msSpeechRecognition;
var recognition = new recognitionObj();
recognition.lang = options.lang;
recognition.continuous = options.continuous || false;