Bug 11431: (QA followup) Allow https in sound URLs
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
This commit is contained in:
parent
220ff161e9
commit
b8dd899738
1 changed files with 1 additions and 2 deletions
|
@ -122,8 +122,7 @@ function confirmDelete(message) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function playSound( sound ) {
|
function playSound( sound ) {
|
||||||
// This is way faster than substring
|
if ( ! ( sound.indexOf('http://') == 0 || sound.indexOf('https://') == 0 ) {
|
||||||
if ( ! ( sound.charAt(4) == ':' && sound.charAt(5) == '/' && sound.charAt(6) == '/' ) ) {
|
|
||||||
sound = AUDIO_ALERT_PATH + sound;
|
sound = AUDIO_ALERT_PATH + sound;
|
||||||
}
|
}
|
||||||
document.getElementById("audio-alert").innerHTML = '<audio src="' + sound + '" autoplay="autoplay" autobuffer="autobuffer"></audio>';
|
document.getElementById("audio-alert").innerHTML = '<audio src="' + sound + '" autoplay="autoplay" autobuffer="autobuffer"></audio>';
|
||||||
|
|
Loading…
Reference in a new issue