Skip to content

Commit

Permalink
FIXED Issue #118: livereload.js fails due to case-sensitive REL attri…
Browse files Browse the repository at this point in the history
…bute condition
  • Loading branch information
nemoDreamer committed Sep 22, 2014
1 parent f7f6195 commit 95d470f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/livereload.js
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
link = _ref[_i];
if (link.rel === 'stylesheet' && !link.__LiveReload_pendingRemoval) {
if (link.rel.toLowerCase() === 'stylesheet' && !link.__LiveReload_pendingRemoval) {
_results.push(link);
}
}
Expand Down Expand Up @@ -1005,7 +1005,7 @@
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
link = _ref[_i];
if (link.href && link.rel === 'stylesheet/less' || (link.rel.match(/stylesheet/) && link.type.match(/^text\/(x-)?less$/))) {
if (link.href && link.rel.toLowerCase() === 'stylesheet/less' || (link.rel.match(/stylesheet/i) && link.type.match(/^text\/(x-)?less$/i))) {
_results.push(link);
}
}
Expand Down

0 comments on commit 95d470f

Please sign in to comment.