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:
parent
aece94029c
commit
07da989bfd
28 changed files with 413 additions and 185 deletions
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue