Permalink
Browse files

Removed a check for invalid cache, which doesn't seem to work with al…

…l server software
  • Loading branch information...
ingemaradahl committed Jun 14, 2012
1 parent ae10ac4 commit 88b718f2d00c850559b02d88532d3f2ed3c55906
Showing with 1 addition and 8 deletions.
  1. +1 −8 src/ResourceDepot.js
View
@@ -463,14 +463,7 @@ function loadJSON(file, callback) {
if (request.status == 404)
console.log("ERROR: file '" + file + "' does not exist!");
else {
- var len = request.getResponseHeader("Content-Length");
- if (len && request.responseText.length !== parseInt(len)) {
- console.log(len, request.responseText.length);
- alert("An error occured while downloading Emberwind, please clear your cache and try again.");
- }
- else {
- callback(request.responseText);
- }
+ callback(request.responseText);
}
}
};

0 comments on commit 88b718f

Please sign in to comment.