|
|
|
@ -30,11 +30,17 @@ var routes = [
|
|
|
|
|
async: function (routeTo, routeFrom, resolve, reject) {
|
|
|
|
|
// Show a nag message if no account is set up
|
|
|
|
|
var accountsetup = (inStorage("accountkey") && inStorage("phonenumber")) || getStorage("hideaccountnag") == "true";
|
|
|
|
|
// add escape hatch to regular website if running online
|
|
|
|
|
var escapehatch = false;
|
|
|
|
|
if (window.location.hostname == "app.helena.express") {
|
|
|
|
|
escapehatch = true;
|
|
|
|
|
}
|
|
|
|
|
resolve({
|
|
|
|
|
templateUrl: './pages/home.html'
|
|
|
|
|
}, {
|
|
|
|
|
context: {
|
|
|
|
|
accountsetup: accountsetup,
|
|
|
|
|
escapehatch: escapehatch,
|
|
|
|
|
pages: [
|
|
|
|
|
{
|
|
|
|
|
title: "Drop and Send",
|
|
|
|
|