NodeGuy / server-date

Make the server's clock available in the browser.
http://www.nodeguy.com/serverdate/
Mozilla Public License 2.0
193 stars 52 forks source link

Added default options to script initialization #26

Closed pablovilas closed 8 years ago

pablovilas commented 8 years ago

Added options:

debug: To avoid displaying info in console if you want to samples: Sometimes is not important that +-ms so maybe 3 - 5 samples it's ok. url: If you minimize and concat your js this option avoids returning the hole script, you can define a custom url in your server that returns nothing or whatever you want.

Thanks

NodeGuy commented 8 years ago

Thank you for the pull request.

pablovilas commented 8 years ago

Perfect, thanks. Please feel free to close the pr.

NodeGuy commented 8 years ago

Meaning what—are you agreeing or disagreeing?

pablovilas commented 8 years ago

I'm agree with you. But I'll leave an option for samples, but it's up to you :). Thanks.

NodeGuy commented 8 years ago

In that case please update the pull request with my suggested changes.

pablovilas commented 8 years ago

I'll close this pr and open a new one with the suggested changes