Skip to content

Commit 4440014

Browse files
committed
fix code snippet
1 parent 3dd8606 commit 4440014

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ use the server programmtically).
6868
You can start the server using the binary provided, or use your own start script.
6969

7070
```js
71-
var Server = require('tiny-lr').Server;
72-
var server = new Server();
71+
var tinylr = require('tiny-lr');
7372

7473
// standard LiveReload port
7574
var port = 35729;
7675

76+
// tinylr(opts) => new tinylr.Server(opts);
7777
tinylr().listen(port, function() {
7878
if(err) {
7979
// deal with err

0 commit comments

Comments
 (0)