Refactoring mediaSessionInit variable to event option once (part 2)
This commit is contained in:
parent
abfdfdc5d9
commit
8269340a2e
1 changed files with 0 additions and 2 deletions
|
@ -645,8 +645,6 @@ class App extends HTMLElement {
|
||||||
// Init event session (play audio) on click (because restrictions by web browsers)
|
// Init event session (play audio) on click (because restrictions by web browsers)
|
||||||
window.addEventListener('click', () => {
|
window.addEventListener('click', () => {
|
||||||
audio.play();
|
audio.play();
|
||||||
alert('ok');
|
|
||||||
console.log('ok');
|
|
||||||
}, {once: true});
|
}, {once: true});
|
||||||
|
|
||||||
// mediaSession define metadata
|
// mediaSession define metadata
|
||||||
|
|
Loading…
Reference in a new issue