richtr / NoSleep.js

Prevent display sleep and enable wake lock in any Android or iOS web browser.
MIT License
2.19k stars 379 forks source link

destroy not working #159

Open lyscarz opened 10 months ago

lyscarz commented 10 months ago

I am trying to get the "noSleep video running" dialog that appears on iPhone when I lock the screen after enabling noSleep. I tried destroy, after disable, but it's not working.

Expected Behavior

Remove the video element completely from the DOM

Actual Behavior

Failing, console says function not available.

How Do We Reproduce?

Enable (from testpage) no sleep - lock the phone and see the video "paused" on the lockscreen.