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

added the option to specify a title when the enable function is called #124

Open MaRossetti opened 3 years ago

MaRossetti commented 3 years ago

Hey man! I'm Marco, a Frontend Developer from Barcelona. I added a small feature to your already awesome package (good job btw, you saved me). I hope you like what i added even though it's not a big thing.

This PR contains a:

Motivation / Use-Case

I needed to show a particular video title when an IOS device is locked. As you can see here the "NoSleep" title is shown:

IMG_A31F279A54A4-1

I just wanted the possibility to customize it a little bit :)

keichenblat commented 3 years ago

Thank you Marco 👑 I also ran into the need to customize the title, so I was happy to see that someone has already taken care of it