diff --git a/keep.js b/keep.js index 2dcb646..52dd465 100644 --- a/keep.js +++ b/keep.js @@ -27,7 +27,7 @@ audio.loop = true document.body.appendChild(audio) - const listenEvents = ["keydown", "click"] + const listenEvents = ["keydown", "pointerdown", "click"] const addAllListeners = (listener) => { listenEvents.forEach(ev => { @@ -52,9 +52,10 @@ audio.muted = false audio.loop = false audio.onended = reload - removeAllListeners(startMedia) } + audio.onplaying = () => removeAllListeners(startMedia) + addAllListeners(startMedia) } })() \ No newline at end of file diff --git a/test.html b/test.html index 9355ac7..b1eacfe 100644 --- a/test.html +++ b/test.html @@ -1,3 +1,3 @@ - +

Test Page

This page should stay open on your Amazon Echo Show device

\ No newline at end of file