Lanceur d'application pour GNU/Linux
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 673B

123456789101112131415161718192021222324252627282930
  1. <html>
  2. <head>
  3. <title>Lanceur - Pitaya</title>
  4. <link rel="stylesheet" href="css/style.css" />
  5. </head>
  6. <body>
  7. <!-- Application root element -->
  8. <div id="pitaya"></div>
  9. <!-- Scripts -->
  10. <script type="text/javascript">
  11. // React context detection workaround
  12. global.document = global.window.document;
  13. global.navigator = global.window.navigator;
  14. var isDev = process.env.NODE_ENV === 'development';
  15. if(isDev) {
  16. // Auto transform JSX
  17. require('node-jsx').install({extension: '.js'});
  18. }
  19. // Launch app
  20. require('./'+(isDev ? 'src' : 'dist')+'/app.js');
  21. </script>
  22. </body>
  23. </html>