From 6380e82cb51b8e1d43ceeff53f6f197050ec4173 Mon Sep 17 00:00:00 2001 From: AveVlad Date: Fri, 21 Feb 2014 18:13:04 +0400 Subject: [PATCH] fixed #22 --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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": {