Skip to content
This repository has been archived by the owner on Oct 2, 2018. It is now read-only.

Commit

Permalink
Fix init bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Smith committed Nov 28, 2013
1 parent 0754dc2 commit 67491f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/io.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ firetext.io.init = function (api, callback) {
deviceAPI = 'deviceStorage';
storage = navigator.getDeviceStorage('sdcard');
if (!storage) {
init('file', callback);
firetext.io.init('file', callback);
return;
}

Expand All @@ -37,7 +37,7 @@ firetext.io.init = function (api, callback) {
deviceAPI = null;
storage = null;
alert("The SDCard on your device is shared, and thus not available. Try disabling USB Mass Storage in your settings.");
init('file', callback);
firetext.io.init('file', callback);
return;
} else {
storage.onchange = function (change) {
Expand All @@ -51,7 +51,7 @@ firetext.io.init = function (api, callback) {
deviceAPI = null;
storage = null;
alert("Unable to get the space used by the SDCard: " + this.error);
init('file', callback);
firetext.io.init('file', callback);
return;
};
} else {
Expand Down

0 comments on commit 67491f0

Please sign in to comment.