Skip to content

Commit

Permalink
Merge pull request #119 from nemoDreamer/issue_118_livereload_js_fail…
Browse files Browse the repository at this point in the history
…s_due_to_case_sensitive_rel_attribute_condition

livereload.js fails due to case-sensitive REL attribute condition
  • Loading branch information
thibaudgg committed Sep 23, 2014
2 parents f7f6195 + 95d470f commit 7bf38b3
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 7bf38b3

Please sign in to comment.