Skip to content

Commit 0dd5219

Browse files
committed
3.4.0
1 parent 4873799 commit 0dd5219

5 files changed

+9
-8
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "livereload-js",
3-
"version": "3.3.3",
3+
"version": "3.4.0",
44
"main": "dist/livereload.js",
55
"homepage": "http://livereload.com",
66
"authors": [

dist/livereload.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -2200,7 +2200,7 @@ var _require = require('./protocol'),
22002200
PROTOCOL_6 = _require.PROTOCOL_6,
22012201
PROTOCOL_7 = _require.PROTOCOL_7;
22022202

2203-
var VERSION = "3.3.3";
2203+
var VERSION = "3.4.0";
22042204

22052205
var Connector = /*#__PURE__*/function () {
22062206
function Connector(options, WebSocket, Timer, handlers) {
@@ -3349,6 +3349,7 @@ var IMAGE_STYLES = [{
33493349
var DEFAULT_OPTIONS = {
33503350
stylesheetReloadTimeout: 15000
33513351
};
3352+
var IMAGES_REGEX = /\.(jpe?g|png|gif|svg)$/i;
33523353

33533354
var Reloader = /*#__PURE__*/function () {
33543355
function Reloader(window, console, Timer) {
@@ -3395,7 +3396,7 @@ var Reloader = /*#__PURE__*/function () {
33953396
}
33963397
}
33973398

3398-
if (options.liveImg && path.match(/\.(jpe?g|png|gif)$/i)) {
3399+
if (options.liveImg && path.match(IMAGES_REGEX)) {
33993400
this.reloadImages(path);
34003401
return;
34013402
}
@@ -3422,7 +3423,7 @@ var Reloader = /*#__PURE__*/function () {
34223423
}
34233424

34243425
if (pluginId === 'img') {
3425-
if (options.liveImg && path.match(/\.(jpe?g|png|gif)$/i)) {
3426+
if (options.liveImg && path.match(IMAGES_REGEX)) {
34263427
_this.reloadImages(path);
34273428

34283429
return true;

dist/livereload.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "livereload-js",
3-
"version": "3.3.3",
3+
"version": "3.4.0",
44
"description": "LiveReload JS client - auto reload browser on changes",
55
"main": "dist/livereload.js",
66
"module": "src/startup.js",

0 commit comments

Comments
 (0)