|
|
|
@ -32,7 +32,7 @@ var routes = [
|
|
|
|
|
pageAfterIn: function () {
|
|
|
|
|
function tryToLoadInventory() {
|
|
|
|
|
if (typeof loadInventory != "function") {
|
|
|
|
|
setTimeout(loadInventory, 100);
|
|
|
|
|
setTimeout(tryToLoadInventory, 100);
|
|
|
|
|
} else {
|
|
|
|
|
loadInventory(function () {});
|
|
|
|
|
}
|
|
|
|
@ -48,10 +48,10 @@ var routes = [
|
|
|
|
|
on: {
|
|
|
|
|
pageAfterIn: function () {
|
|
|
|
|
function tryToLoadProfile() {
|
|
|
|
|
if (typeof loadProfile != "function") {
|
|
|
|
|
setTimeout(loadProfile, 100);
|
|
|
|
|
} else {
|
|
|
|
|
if (typeof loadProfile === "function") {
|
|
|
|
|
loadProfile(function () {});
|
|
|
|
|
} else {
|
|
|
|
|
setTimeout(tryToLoadProfile, 100);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
tryToLoadProfile();
|
|
|
|
@ -91,7 +91,7 @@ var routes = [
|
|
|
|
|
pageAfterIn: function () {
|
|
|
|
|
function tryToLoadSettings() {
|
|
|
|
|
if (typeof loadSettings != "function") {
|
|
|
|
|
setTimeout(loadSettings, 500);
|
|
|
|
|
setTimeout(tryToLoadSettings, 500);
|
|
|
|
|
} else {
|
|
|
|
|
loadSettings();
|
|
|
|
|
}
|
|
|
|
|