diff --git a/index.js b/index.js index 45758c2..8df27c3 100644 --- a/index.js +++ b/index.js @@ -57,7 +57,7 @@ module.exports = { }, reload: function () { return es.map(function (file, callback) { - if (o.livereload) { + if (o.livereload && typeof lr == "object") { lr.changed({ body: { files: file.path diff --git a/package.json b/package.json index 124bf53..64c6601 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gulp-connect", - "version": "1.0.3", + "version": "1.0.4", "description": "Gulp plugin connect to server, LiveReload and opening browser", "license": "MIT", "repository": {