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

use shared voice components

This commit is contained in:
Luke Pulverenti 2016-07-06 15:25:58 -04:00
parent aece94029c
commit 07da989bfd
28 changed files with 413 additions and 185 deletions

View file

@ -140,9 +140,9 @@
}
}
require(['voice/voice'], function (voice) {
require(['apphost'], function (apphost) {
if (voice.isSupported()) {
if (apphost.supports('voiceinput')) {
header.querySelector('.headerVoiceButton').classList.remove('hide');
} else {
header.querySelector('.headerVoiceButton').classList.add('hide');
@ -164,8 +164,8 @@
}
function showVoice() {
require(['voice/voice'], function (voice) {
voice.showDialog();
require(['voiceDialog'], function (voiceDialog) {
voiceDialog.showDialog();
});
}