Skip to content

Commit 13fc036

Browse files
committed
fix: css hot
1 parent 61df5fb commit 13fc036

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils/hot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if (typeof window === 'object') {
1818
try {
1919
var update = JSON.parse(request.responseText);
2020
var c = update.c;
21-
if (!c || JSON.stringify(c) === '{}' || JSON.stringify(c) === '{"0":true}') {
21+
if (!c || JSON.stringify(c) === '{}' || /:true/.test(JSON.stringify(c))) {
2222
var links = document.getElementsByTagName('link');
2323
for (var i = 0; i < links.length; i++) {
2424
var href = links[i].href;

0 commit comments

Comments
 (0)