Skip to content

Commit 2cf6dcb

Browse files
committed
Merge pull request #35 from romulof/patch-1
Add support to live reload SVG images
2 parents 22bb9c8 + 1d6423b commit 2cf6dcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/public/livereload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ Options.extract = function(document) {
506506
}
507507
}
508508
if (options.liveImg) {
509-
if (path.match(/\.(jpe?g|png|gif)$/i)) {
509+
if (path.match(/\.(jpe?g|png|gif|svg)$/i)) {
510510
this.reloadImages(path);
511511
return;
512512
}

0 commit comments

Comments
 (0)