diff options
-rw-r--r-- | debug.html | 10 | ||||
-rw-r--r-- | index.html | 20 |
2 files changed, 17 insertions, 13 deletions
@@ -2,11 +2,11 @@ <html> <head> <title>Enyo Bootplate App</title> - <link rel="shortcut icon" href="assets/favicon.ico"> + <link rel="shortcut icon" href="assets/favicon.ico"/> <!-- --> - <meta http-equiv="Content-Type" content="text/html; charset=utf8"> - <meta name="apple-mobile-web-app-capable" content="yes"> - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> + <meta http-equiv="Content-Type" content="text/html; charset=utf8"/> + <meta name="apple-mobile-web-app-capable" content="yes"/> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/> <!-- enyo (debug) --> <script src="enyo/enyo.js"></script> <!-- application (debug) --> @@ -14,7 +14,7 @@ </head> <body class="enyo-unselectable"> <script> - new App().write(); + new App().renderInto(document.body); </script> </body> </html> @@ -2,21 +2,25 @@ <html> <head> <title>Enyo Bootplate App</title> - <link rel="shortcut icon" href="assets/favicon.ico"> + <link rel="shortcut icon" href="assets/favicon.ico"/> <!-- --> - <meta http-equiv="Content-Type" content="text/html; charset=utf8"> - <meta name="apple-mobile-web-app-capable" content="yes"> - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> + <meta http-equiv="Content-Type" content="text/html; charset=utf8"/> + <meta name="apple-mobile-web-app-capable" content="yes"/> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/> <!-- css --> - <link href="build/enyo.css" rel="stylesheet"> - <link href="build/app.css" rel="stylesheet"> + <link href="build/enyo.css" rel="stylesheet"/> + <link href="build/app.css" rel="stylesheet"/> <!-- js --> <script src="build/enyo.js"></script> - <script src="build/app.js" onerror="alert('No application build found, redirecting to debug.html.'), location='debug.html';"></script> + <script src="build/app.js"></script> </head> <body class="enyo-unselectable"> <script> - new App().write(); + if (!window.App) { + alert('No application build found, redirecting to debug.html.'); + location = 'debug.html'; + } + new App().renderInto(document.body); </script> </body> </html> |