aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.html
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2017-10-13 12:29:40 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2017-10-13 12:29:40 +0200
commit58cda9cc7fb79ca9df6746de7f9662bc08dc156a (patch)
tree1211600c2a5d3b5f81c435c6896618111a611720 /src/index.html
downloadferdium-app-58cda9cc7fb79ca9df6746de7f9662bc08dc156a.tar.gz
ferdium-app-58cda9cc7fb79ca9df6746de7f9662bc08dc156a.tar.zst
ferdium-app-58cda9cc7fb79ca9df6746de7f9662bc08dc156a.zip
initial commit
Diffstat (limited to 'src/index.html')
-rw-r--r--src/index.html30
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>