|
@@ -128,7 +128,7 @@
|
|
|
|
|
|
// entrees
|
|
// entrees
|
|
// TODO: center the entrees menu
|
|
// TODO: center the entrees menu
|
|
-
|
|
|
|
|
|
+
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -970,12 +970,11 @@
|
|
var promise = this.audio.play();
|
|
var promise = this.audio.play();
|
|
// console.log('promise', promise);
|
|
// console.log('promise', promise);
|
|
if (promise !== undefined) {
|
|
if (promise !== undefined) {
|
|
- promise.catch(error => {
|
|
|
|
|
|
+ promise.catch(function(error){
|
|
// Auto-play was prevented
|
|
// Auto-play was prevented
|
|
// Show a UI element to let the user manually start playback
|
|
// Show a UI element to let the user manually start playback
|
|
console.warn('autoplay failed, ask for playing', error);
|
|
console.warn('autoplay failed, ask for playing', error);
|
|
-
|
|
|
|
- }).then(() => {
|
|
|
|
|
|
+ }).then(function(){
|
|
// Auto-play started
|
|
// Auto-play started
|
|
console.log('autoplay succeed');
|
|
console.log('autoplay succeed');
|
|
});
|
|
});
|