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

Commit 67491f0

Browse files
author
Joshua Smith
committed
Fix init bug
1 parent 0754dc2 commit 67491f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/io.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ firetext.io.init = function (api, callback) {
2424
deviceAPI = 'deviceStorage';
2525
storage = navigator.getDeviceStorage('sdcard');
2626
if (!storage) {
27-
init('file', callback);
27+
firetext.io.init('file', callback);
2828
return;
2929
}
3030

@@ -37,7 +37,7 @@ firetext.io.init = function (api, callback) {
3737
deviceAPI = null;
3838
storage = null;
3939
alert("The SDCard on your device is shared, and thus not available. Try disabling USB Mass Storage in your settings.");
40-
init('file', callback);
40+
firetext.io.init('file', callback);
4141
return;
4242
} else {
4343
storage.onchange = function (change) {
@@ -51,7 +51,7 @@ firetext.io.init = function (api, callback) {
5151
deviceAPI = null;
5252
storage = null;
5353
alert("Unable to get the space used by the SDCard: " + this.error);
54-
init('file', callback);
54+
firetext.io.init('file', callback);
5555
return;
5656
};
5757
} else {

0 commit comments

Comments
 (0)