pitaya-launcher/index.html

32 lines
740 B
HTML
Raw Permalink Normal View History

2015-08-20 18:41:51 +02:00
<html>
<head>
2015-08-26 14:08:12 +02:00
<title>Lanceur - Pitaya</title>
2015-08-20 18:41:51 +02:00
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="fonts/fontello/css/arrows.css" />
2015-08-20 18:41:51 +02:00
</head>
<body>
<!-- Application root element -->
2015-08-26 14:08:12 +02:00
<div id="pitaya"></div>
2015-09-11 16:25:45 +02:00
<!-- Scripts -->
2015-08-20 18:41:51 +02:00
<script type="text/javascript">
2015-08-27 18:24:29 +02:00
// React context detection workaround
global.document = global.window.document;
global.navigator = global.window.navigator;
var isDev = process.env.NODE_ENV === 'development';
2015-08-27 18:24:29 +02:00
if(isDev) {
// Auto transform JSX
require('node-jsx').install({extension: '.js'});
}
2015-08-27 18:24:29 +02:00
// Launch app
require('./'+(isDev ? 'src' : 'dist')+'/app.js');
2015-08-20 18:41:51 +02:00
</script>
</body>
</html>