Skip to content

Commit

Permalink
fix: css hot
Browse files Browse the repository at this point in the history
  • Loading branch information
hubcarl committed Sep 4, 2018
1 parent 61df5fb commit 13fc036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/hot.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if (typeof window === 'object') {
try {
var update = JSON.parse(request.responseText);
var c = update.c;
if (!c || JSON.stringify(c) === '{}' || JSON.stringify(c) === '{"0":true}') {
if (!c || JSON.stringify(c) === '{}' || /:true/.test(JSON.stringify(c))) {
var links = document.getElementsByTagName('link');
for (var i = 0; i < links.length; i++) {
var href = links[i].href;
Expand Down

0 comments on commit 13fc036

Please sign in to comment.