Refactoring mediaSessionInit variable to event option once (part 2)

This commit is contained in:
Jozef Liška 2020-09-23 11:07:41 +02:00
parent abfdfdc5d9
commit 8269340a2e

View file

@ -645,8 +645,6 @@ class App extends HTMLElement {
// Init event session (play audio) on click (because restrictions by web browsers)
window.addEventListener('click', () => {
audio.play();
alert('ok');
console.log('ok');
}, {once: true});
// mediaSession define metadata