diff options
Diffstat (limited to 'src/index.html')
-rw-r--r-- | src/index.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/index.html b/src/index.html new file mode 100644 index 000000000..05a93e37b --- /dev/null +++ b/src/index.html | |||
@@ -0,0 +1,30 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html lang="en"> | ||
3 | <head> | ||
4 | <title>Franz</title> | ||
5 | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> | ||
6 | <link rel="stylesheet" type="text/css" href="./styles/main.css" /> | ||
7 | <script type="text/javascript" src="./app.js"></script> | ||
8 | </head> | ||
9 | <body> | ||
10 | <div class="window-draggable"></div> | ||
11 | <div class="dev-warning">DEV MODE</div> | ||
12 | <div id="root"></div> | ||
13 | <script> | ||
14 | document.querySelector('body').classList.add(process.platform); | ||
15 | |||
16 | const { isDevMode } = require('./environment'); | ||
17 | if (isDevMode) { | ||
18 | document.querySelector('body').classList.add('isDevMode'); | ||
19 | |||
20 | (function() { | ||
21 | const lrHost = 'http://localhost:35729'; | ||
22 | const s = document.createElement('script'); | ||
23 | s.async = true; | ||
24 | s.setAttribute('src', lrHost + '/livereload.js'); | ||
25 | document.body.appendChild(s); | ||
26 | })(); | ||
27 | } | ||
28 | </script> | ||
29 | </body | ||
30 | </html> | ||