-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added the option to specify a title when the enable function is called #124
base: master
Are you sure you want to change the base?
Conversation
@@ -128,6 +128,7 @@ var NoSleep = function () { | |||
|
|||
_classCallCheck(this, NoSleep); | |||
|
|||
this.title = "No sleep"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use capital S here to keep the default value as-is (i.e. No Sleep
)
<head> | ||
<title>NoSleep.js - Simple Test Page</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<body> | ||
<h1>NoSleep Test Page</h1> | ||
<script src="../dist/NoSleep.min.js"></script> | ||
<head> | ||
<title>NoSleep.js - Simple Test Page</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<body> | ||
<h1>NoSleep Test Page</h1> | ||
<script src="../dist/NoSleep.min.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This diff seems to originate due to the use of different format settings from the repo's owner. I suggest reverting those changes because the owner may not like them
Thank you Marco 👑 |
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:
I just wanted the possibility to customize it a little bit :)