Permalink
Browse files

Removed * from whitelist (didn't need) and improved ratchet.js to onl…

…y support status 0 when on the filesystem.
  • Loading branch information...
1 parent 7bce7ff commit 81c5f7c9dd1b219c3e5f7019a7110f3ee61fe851 @ryanstewart committed Nov 7, 2012
Showing with 1 addition and 3 deletions.
  1. +0 −2 config.xml
  2. +1 −1 js/ratchet.js
View
@@ -16,8 +16,6 @@
<author href="http://blog.digitalbackcountry.com" email="ryan@adobe.com">
Ryan Stewart
</author>
-
- <access origin="*" />
<icon src="touch-icons/apple-touch-icon-57x57.png" width="57" height="57" />
<icon src="touch-icons/apple-touch-icon-72x72.png" gap:platform="ios" width="72" height="72" />
View
@@ -271,7 +271,7 @@
xhr.onreadystatechange = function () {
if (options._timeout) clearTimeout(options._timeout);
- if (xhr.readyState == 4) xhr.status == 200 || xhr.status == 0 ? success(xhr, options) : failure(options.url);
+ if (xhr.readyState == 4) xhr.status == 200 || (xhr.status == 0 && options.url.indexOf('file:///') != -1) ? success(xhr, options) : failure(options.url);
};
if (!PUSH.id) {

0 comments on commit 81c5f7c

Please sign in to comment.